Javatpoint Logo
Javatpoint Logo

JavaScript String toLocaleUpperCase() Method

JavaScript string toLocaleUpperCase() method converts the string to uppercase letter on the basis of host's current locale. In most cases, this method returns the similar result as the toUpperCase() method.

Syntax

The toLocaleUpperCase() method is represented by the following syntax:

Returns

A string of uppercase letter on the basis of host's current locale.

JavaScript String toLocaleUpperCase() Method Example

Let's see some simple examples of toLocaleUpperCase() method.

Example 1

Here, we will print the given string in uppercase letter.

Test it Now

Output:

JAVATPOINT

Example 2

Let's see one more example to print the given string in uppercase letter.

Test it Now

Output:

JAVATPOINT

Next TopicJavaScript String





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA