The JavaScript String fromCharCode() Method converts unicode (UTF-16 code) numbers into characters.

Syntax


String.fromCharCode(u1, u2, ... , un)

Examples


console.log(String.fromCharCode(65));

// A

console.log(String.fromCharCode(0x2014));

// —

console.log(String.fromCharCode(89, 79, 71, 69, 83, 72))

// YOGESH

 

0 Comments

Leave a reply

Your email address will not be published. required fields are marked *