String.prototype.codePointAtintermediateconst str = 'Hello'
str.codePointAt(0) // β 72
'π'.codePointAt(0) // β 128512Use codePointAt() to get the full Unicode code point at a position, correctly handling supplementary characters.
For BMP characters, both methods return the same value. For supplementary characters, they differ at position 0.
Challenge: Implement codesMatch(str, pos) that returns true when .codePointAt(pos) equals .charCodeAt(pos).
codesMatch('A', 0) // β true
codesMatch('π', 0) // β false