String.prototype.toLowerCasebeginner'HELLO World'.toLowerCase() // β 'hello world'
'ABC'.toLowerCase() // β 'abc'
'XYZ123'.toLowerCase() // β 'xyz123'Use toLowerCase() to convert all alphabetical characters in a string to lowercase.
Digits, spaces, and symbols are not affected by toLowerCase().
Challenge: Implement lowerAlpha(str) that lowercases only the letters.
lowerAlpha('ABC 123!') // β 'abc 123!'