Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript capitalize first letter

function capitalizeFirstLetter(string) {
     return string.charAt(0).toUpperCase() + string.slice(1);
}

Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #javascript #capitalize #letter
ADD COMMENT
Topic
Name
6+4 =