The toLowerCase()
method converts a string to lowercase letters.
The toLowerCase() method does not change the original string.
String toLowerCase() |
Yes | Yes | Yes | Yes | Yes |
stringObject.toLowerCase();
None.
A string converted to lowercase.
The following code shows how to convert string to lower case.
var stringValue = "Hello world";
console.log(stringValue.toLowerCase()); //"hello world"
The code above generates the following result.