131
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.
Output:
TUTORASPIRE
Example 2
Let’s see one more example to print the given string in uppercase letter.
Output:
TUTORASPIRE
Next TopicJavaScript String