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.
Digit characters '0'β'9' have char codes 48β57.
Challenge: Implement isDigitChar(ch) using .charCodeAt(0) to detect digit characters.
isDigitChar('5') // β true
isDigitChar('a') // β false