Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Capitalize The 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: #Capitalize #The #String
ADD COMMENT
Topic
Name
1+2 =