Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js first letter to uppercase

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