let name = 'john'; name = name.charAt(0).toUpperCase() + name.slice(1); //slice(index) return string from index to index console.log(name); // John