Easy Tutorial
❮ Prop Number Value Prop Html Classname ❯

JavaScript toLocaleUpperCase() Method

JavaScript String Object

Example

Convert a string to uppercase:

n Output result:


Definition and Usage

The toLocaleUpperCase() method converts a string to uppercase according to the host's locale.

The locale is determined by the language settings of the browser.

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

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

Tip: Use the toLocaleLowerCase() method to convert a string to lowercase according to the host's locale.


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.toLocaleUpperCase()

Parameter Values

Return Value

Type Description
String Converted to uppercase according to the locale.

Technical Details

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


JavaScript String Object

❮ Prop Number Value Prop Html Classname ❯