var capitalizeMe = "capitalize the first letter of a string in javascript"; var capitalized = capitalizeMe[0].toUpperCase() + capitalizeMe.substring(1); console.log(capitalized); // Capitalize the first letter of a string in javascript
Subscribe
Login
0 Comments
Most Voted