How to make a string's first character uppercase in JavaScript

Publié le: 19 mars 2019
sur la chaîne: Web & Beyond
195
2

In PHP, we have ucfirst() function to make the string's first character uppercase. In JavaScript, we don't have any such function. So, we will see how to create a function in JavaScript with the same behavior in this video.

In this video, you will see an example of ES6 arrow function, use of innerText property, chatAt, slice and document.querySelector to create JS ucFirst().


Sur cette page du site, vous pouvez voir la vidéo en ligne How to make a string's first character uppercase in JavaScript durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Web & Beyond 19 mars 2019, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 195 fois et il a aimé 2 téléspectateurs. Bon visionnage!