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.
Mixed-case ASCII strings are fully uppercased.
Challenge: Implement normalizeUpper(str) that uppercases any ASCII string.
normalizeUpper('HeLLo WoRLd') // β 'HELLO WORLD'