Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

uppercase-the-first-letter-of-a-string-using-javascript/

const name = 'avengers'
const userName = name.charAt(0).toUpperCase() + name.slice(0)

console.log(userName)
// Output: Aavengers
Source by www.positronx.io #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
5+9 =