Prev Demo
Charcodeat For Returning The First Character Unicode Value
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 first 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(0) document.getElementById("myId").innerHTML = n; } </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output