Skip to content

Convert Unicode number to character JavaScript | Example code

  • by

Use the fromCharCode() string method to convert Unicode values to characters in JavaScript.

Example Convert Unicode number to character JavaScript

HTML example code:-

<!DOCTYPE html>
<html>
   <body>
      <script>
         var a = String.fromCharCode(72);
         console.log("Character: " + a);
      </script>
   </body>
</html>

Output:

Convert Unicode number to character JavaScript

Do comment if you have any doubts and suggestions on this JS number.

Note: The All JS Examples codes are tested on the Firefox browser and the Chrome browser.

OS: Windows 10

Code: HTML 5 Version

Leave a Reply

Discover more from Tutorial

Subscribe now to keep reading and get access to the full archive.

Continue reading