Easy Tutorial
❮ Jsref Constructor Array Prop Node Previoussibling ❯

JavaScript toLocaleLowerCase() Method

JavaScript String Object

Example

Convert a string to lowercase:

res Output result:


Definition and Usage

The toLocaleLowerCase() method converts a string to lowercase according to the locale of the host.

The locale is determined by the browser's language settings.

Usually, this method returns the same result as the toLowerCase() method, except for a few languages (like Turkish) that have locale-specific case mappings.

Note: The toLocaleLowerCase() method does not change the original string.

Tip: Use the toLocaleUpperCase() method to convert a string to uppercase according to the locale of the host.


Browser Support

The numbers in the table specify the first browser version that fully supports the method.

Method
toLocaleLowerCase() Yes Yes Yes Yes Yes

Syntax

string.toLocaleLowerCase()

Parameter Values

Return Value

Type Description
String Converted to lowercase according to the locale.

Technical Details

| JavaScript Version: | ECMAScript 1 | | --- | --- |


JavaScript String Object

❮ Jsref Constructor Array Prop Node Previoussibling ❯