charCodeAt < String < JavaScript
The charCodeAt() of a String returns an integer between 0 and 65535 representing the UTF-16 code unit at the given index. To get the full Unicode code point at the given index, use String.prototype.codePointAt().
const sentence = 'The quick brown fox jumps over the lazy dog.';
const index = 4;
const sentenceCharCodeAtFour = sentence.charCodeAt(index);
console.log(sentenceCharCodeAtFour);
// 113