Friday 25 March 2016

Convert JavaScript String to be all lower case?



How can I convert a JavaScript string value to be in all lower case letters?



Example: "Your Name" to "your name"


Answer




var lowerCaseName = "Your Name".toLowerCase();

No comments:

Post a Comment

c++ - Does curly brackets matter for empty constructor?

Those brackets declare an empty, inline constructor. In that case, with them, the constructor does exist, it merely does nothing more than t...