charCodeAtAtIndex
The charCodeAt() method in JavaScript is a string method that returns an integer representing the Unicode value of the character at a specified index within a string. The index is zero-based, meaning the first character is at index 0, the second at index 1, and so on. If the specified index is out of the range of the string (i.e., less than 0 or greater than or equal to the string's length), the method returns NaN (Not a Number).
The method is called on a string object. For example, if you have a string named myString,
For instance, to get the Unicode value of the first character in the string "Hello", you would