Prev Demo
JavaScript
>
Charcodeat() Method
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <title>Demo</title> </head> <body> <p>Click on the "Button" for returning the Unicode of 8th character of a string "SN ITFunda Service LLP".</p> <input type="button" value="Button" onclick="Function()" /> <p id="myId"></p> <script> function Function() { var a = "SN ITFunda Service LLP"; var n = a.charCodeAt(8) document.getElementById("myId").innerHTML = n; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output