String.prototype.toLocaleUpperCase

Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment’s current locale.

Syntax

toLocaleUpperCase()

Return value

A string.

Examples

"hello".toLocaleUpperCase()
"HELLO"