How to convert Unicode values to characters in JavaScript?

HTMLProgramming ScriptsJavascript

To convert Unicode values to characters in JavaScript, use the fromCharCode() string method.

Example

You can try to run the following code to convert Unicode to character −

Live Demo

<!DOCTYPE html>
<html>
   <body>
      <script>
         var a = String.fromCharCode(72);
         document.write("Character: "+a);
      </script>
   </body>
</html>
raja
Published on 26-Feb-2018 06:35:32
Advertisements