Friday, July 21, 2017

freecodecamp: Title Case a Sentence

GoalReturn the provided string with the first letter of each word capitalized. Make sure the rest of the word is in lower case.


Solution: I used regular expression to select the first letterof each word and converting them to uppercase.



No comments: