Javascript – Convert JavaScript String to be all lower case

javascriptstring

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

Example: "Your Name" to "your name"

Best Solution

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