Question: Javascript sentenceCase - 15pts This function takes two arguments: a single string (str) and an array of strings (unconditionallyCapitalized[U). This function returns a copy of
Javascript

sentenceCase - 15pts This function takes two arguments: a single string (str) and an array of strings (unconditionallyCapitalized[U). This function returns a copy of str with the first letter of the first word capitalized, and all other words lower case, except for words that are unconditionally capitalized, such as proper nouns and "T". The unconditionallyCapitalized array contains all words that should be unconditionally capitalized. capitalizedCase - 10pts This function takes a single string and returns a copy of the string with the first character of each word converted to uppercase. alternatingCase - 10pts This function takes a single string and returns a copy of the string comprised of characters that alternate between lower and uppercase. titleCase - 15pts This function takes two arguments: a single string (str) and an array of strings (lowercaseNords[0). 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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
