javascript capitalize string

99

capitalize in javascript -

const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)

Comments

Submit
0 Comments