Javascript Reference - JavaScript String toLocaleUpperCase() Method








toLocaleUpperCase() converts string to upper case for host's current locale.

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

Browser Support

toLocaleUpperCase() Yes Yes Yes Yes Yes

Syntax

stringObject.toLocaleUpperCase();

Parameters

None.

Return Value

A string converted to uppercase according to the host's current locale.





Example


var stringValue = "hello world"; 
console.log(stringValue.toLocaleUpperCase()); //"HELLO WORLD" 

The code above generates the following result.