const name = 'avengers' const userName = name.charAt(0).toUpperCase() + name.slice(0) console.log(userName) // Output: Aavengers