WeCodeAcademy

Capitalize the first letter of a word

Take the first character, upper-case it, and add the rest with slice(1).

Examplejavascript
Open in editor »

More JavaScript recipes