Summary
Returns the calling string value converted to lowercase.
Method of String | |
|---|---|
| Implemented in | JavaScript 1.0 |
| ECMAScript Edition | ECMAScript 1st Edition |
Syntax
string.toLowerCase()
Parameters
None.
Description
The toLowerCase method returns the value of the string converted to lowercase. toLowerCase does not affect the value of the string itself.
Examples
Example: Using toLowerCase
The following example displays the lowercase string "alphabet":
var upperText="ALPHABET"; document.write(upperText.toLowerCase());
See Also
Mozilla Developer Network