toLocaleUpperCase()
converts
string to upper case for host's current locale.
The toLocaleUpperCase() method does not change the original string.
toLocaleUpperCase() |
Yes | Yes | Yes | Yes | Yes |
stringObject.toLocaleUpperCase();
None.
A string converted to uppercase according to the host's current locale.
var stringValue = "hello world";
console.log(stringValue.toLocaleUpperCase()); //"HELLO WORLD"
The code above generates the following result.