Question: Javascript ES6 syntax titleCase 15pts This function takes two arguments: a single string (str) and an array of strings (lowercaseWords[]). It returns a copy of
Javascript ES6 syntax

titleCase 15pts This function takes two arguments: a single string (str) and an array of strings (lowercaseWords[]). It returns a copy of str with the initial letter of each word capitalized. After the first word in the string, however, articles, conjunctions, and prepositions not more than five letters long should all be lower case. The lowercasewords array contains all words that should be lowercased. inverseCase 10pts This function takes a single string and returns a copy of the string with the first letter of each word lowercased, and all other letters in the word uppercased NOTE: For these funetions, consider each word to be separated by one or more white-space characters
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
