Function
Capitalize the first character of a string
The string to capitalize
The string with the first character in uppercase
capitalize("hello"); // "Hello"capitalize("hello world"); // "Hello world"capitalize(""); // "" Copy
capitalize("hello"); // "Hello"capitalize("hello world"); // "Hello world"capitalize(""); // ""
Capitalize the first character of a string