Get char Code
<html> <body> <button onclick="var myS = new String('Sample String'); alert(myS.charCodeAt(3));">String: CHARCODEAT</button> </body> </html>