FunctionRacerProblemsRace

Capitalize the Title

BeginnerStringsPython, JavaScript, TypeScript, Java, C++

Words in title are separated by single spaces. Change each word like this:

Return the new title.

Example 1

title "capiTalIze tHe titLe"
returns "Capitalize The Title"

Each word is longer than 2 letters, so each becomes Capitalize The Title.

Example 2

title "First leTTeR of EACH Word"
returns "First Letter of Each Word"

Constraints

Race itor take your time

Write it in your browser, against the clock. The model solution, stepped through line by line, comes after.

More Strings problems