String.prototype.toUpperCasebeginner'hello world'.toUpperCase() // β 'HELLO WORLD'
'abc'.toUpperCase() // β 'ABC'
'xyz123'.toUpperCase() // β 'XYZ123'Use toUpperCase() to convert all alphabetical characters in a string to uppercase.
Digits, spaces, and symbols are not affected by toUpperCase().
Challenge: Implement upperAlpha(str) that uppercases only the letters.
upperAlpha('abc 123!') // β 'ABC 123!'