Title Case
Read a line of lower-case words separated by single spaces. Print it with the first letter of every word in capitals.
hello big world becomes Hello Big World.
Input
hello big world
Expected output
Hello Big World
Input
javascript
Expected output
Javascript
Show a hint
split(" ") gives you an array of words; map each one to its first letter upper-cased plus the rest.
Show a solution
Loading the editor…
Run the tests to check your solution.