Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

first name capital letter


function firstCapitalLetter(name){
    return name[0].slice('').toUpperCase() + name.slice(1).toLowerCase()
}


 console.log(firstCapitalLetter('front '))
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #capital #letter
ADD COMMENT
Topic
Name
8+6 =