Javascript - Unicode

Syntax

fromCodePoint

Example with the grinning face emoji. This character has the unicode code point:

let grinningFaceHexa = String.fromCodePoint(0x1F600);
let grinningFaceDeci = String.fromCodePoint(128512);
console.log('HexaDecimal grinning face '+grinningFaceHexa);
console.log('Decimal grinning face '+grinningFaceDeci);

Output:

where:







Share this page:
Follow us:
Task Runner