Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript Capitalise a String

const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1)

capitalize("follow for more")
// Result: Follow for more
Source by dev.to #
 
PREVIOUS NEXT
Tagged: #javascript #Capitalise #String
ADD COMMENT
Topic
Name
2+9 =