Thursday, April 19, 2018

How do I make the first letter of a string uppercase in JavaScript?

How do I make the first letter of a string uppercase, but not change the case of any of the other letters?



For example:




  • "this is a test" -> "This is a test"

  • "the Eiffel Tower" -> "The Eiffel Tower"

  • "/index.html" -> "/index.html"

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...