Memanfaatkan string
const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1)
capitalize("follow for more")
// Result: Follow for more
thefazeelahmed
const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1)
capitalize("follow for more")
// Result: Follow for more
const capitalize = str => str.charAt(0).toUpperCase() + str.slice(1)
capitalize("javascript one-liners are fun")
//Javascript one-liners are fun