Capitalize first letter of string using JavaScript
function capitalizeFirstLetter(string) {
return string[0].toUpperCase() + string.slice(1);
}
Posted
Capitalize first letter of string using JavaScript
function capitalizeFirstLetter(string) {
return string[0].toUpperCase() + string.slice(1);
}