JavaScript String toLocaleLowerCase() method
- Previous page substring()
- Next page toLocaleUpperCase()
- Return to Previous Level JavaScript String Reference Manual
Definition and usage
toLocaleLowerCase()
This method uses the current language environment to convert the string to lowercase letters.
The current language environment is based on the browser's language settings.
toLocaleLowerCase()
This method does not change the original string.
toLocaleLowerCase()
Returns toLowerCase()
is the same as the result, except for language environments that conflict with the conventional Unicode case mapping (such as Turkish).
See also:
Example
Convert to lowercase:
let text = "Hello World!"; let result = text.toLocaleLowerCase();
Syntax
string.toLocaleLowerCase()
Parameter
No parameters.
Return value
Type | Description |
---|---|
String | Converts the current string to a new string in lowercase based on the current language environment. |
Note:The method returns string a copy of it, converted to lowercase letters in the local way. Only a few languages (such as Turkish) have region-specific case mappings, so the return value of this method is usually the same as toLowerCase()
is the same.
Browser support
toLocaleLowerCase()
It is an ECMAScript1 (ES1) feature.
All browsers fully support ES1 (JavaScript 1997):
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support | Support |
- Previous page substring()
- Next page toLocaleUpperCase()
- Return to Previous Level JavaScript String Reference Manual