Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Capitalize a String

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

capitalize("javascript one-liners are fun")
//Javascript one-liners are fun
Source by livecodestream.dev #
 
PREVIOUS NEXT
Tagged: #Capitalize #String
ADD COMMENT
Topic
Name
8+1 =