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().