Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

capitalize first character react

// Capitalize First Letter

function capitalName(text){
    return text.charAt(0).toUpperCase() + text.slice(1);
}
console.log(capitalName("front"))

// Front
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #capitalize #character #react
ADD COMMENT
Topic
Name
8+5 =