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.
All lowercase letters in a mixed string are converted to uppercase.
Challenge: Implement shout(str) that converts any string to uppercase.
shout('HeLLo WoRLd') // β 'HELLO WORLD'