Course · Section 9: Data Structures, Modern Operators and Strings · Lecture 128: Working With Strings - Part 1
Implement `titleCase(s)` returning `s` with the first letter of each space-separated word capitalized.
+ 1 hidden test run on Submit.
Splitting on spaces lets you uppercase each word's first letter and rejoin, with a guard for empty segments.
Run your code to see results.