make first letter of the string in an uppercase in JavaScript
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
JavaScript
🤖 Code Explanation
The function 'capitalize' returns a string with the first character capitalized and the rest of the string lowercase.
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
More problems solved in JavaScript
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)
![](https://cdn-icons-png.flaticon.com/512/5968/5968292.png)