Home » JavaScript String toLocaleUpperCase() Method

JavaScript String toLocaleUpperCase() Method

by Online Tutorials Library

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:

TUTORASPIRE  

Example 2

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

Test it Now

Output:

TUTORASPIRE  

Next TopicJavaScript String

You may also like