Code to go logo
Created using Figma
Use Cases
Contribute
How to uppercase first letter in JavaScript
Strings
By Jad Joubran ·
Last updated Dec 26, 2018
const name = "micha"; const upperFirst = name[0].toUpperCase() + name.substring(1);
Micha
Dec 26, 2018
1
Jad Joubran
See answer
1
Jad Joubran
String.toUpperCase
on MDN
Learn JavaScript step by step