String.prototype.toLocaleUpperCasebeginner'hello'.toLocaleUpperCase() // β 'HELLO'
'world'.toLocaleUpperCase() // β 'WORLD'
'abc123'.toLocaleUpperCase() // β 'ABC123'Use toLocaleUpperCase() to convert a string to uppercase using the locale-specific rules of the host environment.
str.toLocaleUpperCase() converts a string to uppercase using the host locale's rules. For ASCII strings, the result is deterministic.
Challenge: Implement localeUpper(str) that converts the string to uppercase.
localeUpper('hello') // β 'HELLO'