Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js first letter to uppercase

function capitalizeFirstLetter(name) {
    return name.replace(/^./, name[0].toUpperCase())
}
Source by flaviocopes.com #
 
PREVIOUS NEXT
Tagged: #js #letter #uppercase
ADD COMMENT
Topic
Name
8+4 =