charCodeAt-3

 

charCodeAt-3

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <button onclick="findUnicode()">Display the unicode</button> <p id="sample"></p> <script> function findUnicode() { document.getElementById("sample").innerHTML = 'ABC'.charCodeAt(0); } </script> </body> </html>
Output