<html>
<head>
<title>JavaScript String charCodeAt() Method</title>
</head>
<body>
<script type="text/javascript">
var st = new String("God is Great");
document.write("st.charCodeAt(0) is:" + st.charCodeAt(0));
document.write("<br />st.charCodeAt(1) is:" + st.charCodeAt(1));
document.write("<br />st.charCodeAt(2) is:" + st.charCodeAt(2));
document.write("<br />st.charCodeAt(3) is:" + st.charCodeAt(3));
document.write("<br />st.charCodeAt(4) is:" + st.charCodeAt(4));
document.write("<br />st.charCodeAt(5) is:" + st.charCodeAt(5));
</script>
</body>
</html>