Convert UTF-16 (16-bit Unicode Transformation Format) code units to string.
document.write(String.fromCharCode(70)); // output F
Total range of UTF-16 values are from 0 and 65535. The first 128 unicode value are direct match of ASCII chars.
We can get a string output by using fromcharcode.
document.write(String.fromCharCode(70,71,72));// Output is FGH
Let us try to print all the chars by using a for loop and displaying Unicode value and char
The ASCII table ( 0 to 127 )