JavaScript Reference/Javascript Methods/charCodeAt
"charCodeAt()" Example
<html>
<body>
<button onclick="var myS = new String("Sample String");
alert(myS.charCodeAt(3));">get char at an index</button>
</body>
</html>
"charCodeAt()" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |String |
+----------------+--------------------------------------------------------------+
"charCodeAt()" Syntax, Parameters and Note
Note:
Unicode value of the character at the specified index in string.
Syntax:
stringName.charCodeAt(param1)
Parameters:
param1 Required; the index position of the character.