lib/Convert the First Letter of a String into UpperCase.js
// program to convert first letter of a string to uppercase
program to convert first letter of a string to uppercase
program to convert first letter of a string to uppercase
function capitalizeFirstLetter(str) {
    const capitalized = str.charAt(0).toUpperCase() + str.slice(1);
    return capitalized;
}
function capitalizeFirstLetter ( str ) { const capitalized = str . charAt ( 0 ) . toUpperCase ( ) + str . slice ( 1 ) ; return capitalized ; }
program to convert first letter of a string to uppercase
program to convert first letter of a string to uppercase
// converting first letter to uppercase