Convert Unicode number to character JavaScript | Example code

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.