FromCharCode-2

 

Example of JavaScript fromCharCode function:

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <button onclick="convertUnicodeToCharacter()">Display the character</button> <p id="sample"></p> <script> function convertUnicodeToCharacter() { var res = String.fromCharCode(72, 69, 76, 76, 79); document.getElementById("sample").innerHTML = res; } </script> </body> </html>
Output