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