Articles Related
Syntax
fromCodePoint
Example with the grinning face emoji. This character has the unicode code point:
- 1F600 in hexadecimal
- or 128512 in decimal
let grinningFaceHexa = String.fromCodePoint(0x1F600);
let grinningFaceDeci = String.fromCodePoint(128512);
console.log('HexaDecimal grinning face '+grinningFaceHexa);
console.log('Decimal grinning face '+grinningFaceDeci);
Output:
where: