String.prototype.charCodeAtintermediateconst str = 'ABC'
str.charCodeAt(0) // β 65
str.charCodeAt(1) // β 66
str.charCodeAt(99) // β NaNUse charCodeAt() to get the UTF-16 code unit value of the character at the given index.
Lowercase letters have codes 97β122. You can use this to detect if a character is lowercase.
Challenge: Implement isLowercase(ch) that returns true if the single character is lowercase using .charCodeAt(0).
isLowercase('a') // β true
isLowercase('A') // β false