FromCharCode()
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.
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 )
The extended ASCII table ( 128 to 255 )
Note : Direct output of all ASCII chars may not be visible in browser ( like Nul, space etc )
charcodeat to get UTF-16 of the given index point Subscribe to our YouTube Channel here
This article is written by plus2net.com team.
![]() | ||
| ||