Make the first letter uppercase in javascript
Posted on October 9, 2021
Here my preferred snippet:
var s = 'hello'
s.charAt(0).toUpperCase() + s.slice(1)
// 'Hello'
Posted on October 9, 2021
Here my preferred snippet:
var s = 'hello'
s.charAt(0).toUpperCase() + s.slice(1)
// 'Hello'