EN
JavaScript - String fromCodePoint() method example
0 points
xxxxxxxxxx
1
console.log(String.fromCodePoint(960)); // π
2
console.log(String.fromCodePoint(65, 66, 67)); // ABC
3
console.log(String.fromCodePoint(0x0001f34e)); // 🍎
Syntax |
|
Parameters | number1 , ..., numberN - sequence of code points. |
Result | This method returns a string created by using the specified sequence of code points. |
Description | The fromCodePoint() is a static method that returns a string created by using the specified sequence of code points. |