How to use String.fromCodePoint() to get a string created by using a specified sequence of code points in JavaScript

1 Answer

0 votes
document.write(String.fromCodePoint(97) + "<br />");
document.write(String.fromCodePoint(42) + "<br />");
document.write(String.fromCodePoint(0x404) + "<br />");
document.write(String.fromCodePoint(65, 66, 90) + "<br />");
document.write(String.fromCodePoint(0x1D306, 0x61, 0x1D307) + "<br />");

/*
run:

a
*
Є
ABZ
????a????

*/

 



answered Aug 8, 2016 by avibootz
...