Syntax
string.charCodeAt(num)
The charCodeAt() method returns the ISO-Latin-1 number of the character.
This indexing is done from left to right starting with the 0 (zero) position.
If the num passed is not a valid index in the string, -1 is returned.
Using the String.charCodeAt() method