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.

More problems solved in JavaScript




















