String.prototype.toLowerCase() Method in String Class of Javascript Syntax with Examples
2080 Views
Usage
The toLowerCase() method converts string value to lowercase.
Syntax
String.toLowerCase();
Example
var s1 = 'HELLO';
var s2 = 'Hello';
var s3 = 'hElLo';
document.write(s1.toLowerCase());
document.write(s2.toLowerCase());
document.write(s3.toLowerCase());