make first letter of the string in an uppercase in JavaScript
JavaScript
🤖 Code Explanation
The function 'capitalize' returns a string with the first character capitalized and the rest of the string lowercase.
The function 'capitalize' returns a string with the first character capitalized and the rest of the string lowercase.
Download SpellBox today Download SpellBox for macOS, Windows and VS Code today. Solve any programming or engineering problem with A.I.