EN
JavaScript - String fromCodePoint() method example
0
points
// ONLINE-RUNNER:browser;
console.log(String.fromCodePoint(960)); // π
console.log(String.fromCodePoint(65, 66, 67)); // ABC
console.log(String.fromCodePoint(0x0001f34e)); // 🍎
1. Documentation
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. |