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.
Calling toLocaleUpperCase() on an empty string returns an empty string.
Challenge: Implement safeLocaleUpper(str) and handle the empty string case.
safeLocaleUpper('') // β ''
safeLocaleUpper('hi') // β 'HI'