fromCodePoint

fromCodePoint

> Functies

Geeft de string van één teken terug waarvan het unicode-codepoint codePoint is: fromCodePoint(65) geeft "A" terug. Het is het omgekeerde van codePointAt.

Codepoints boven 65535 geven tekens zoals emoji's: fromCodePoint(128040) geeft "🐨" terug.

fromCodePoint(65)                // "A"
fromCodePoint(233)               // "é"
fromCodePoint(9835)              // "♫"
fromCodePoint(128040)            // "🐨"
fromCodePoint(codePointAt("é"))  // "é"
fromCodePoint(-1)                // null
fromCodePoint(0x110000)          // null
String.fromCodePoint(65)       // "A"
String.fromCodePoint(128040)   // "🐨"
chr(65)       # 'A'
chr(128040)   # '🐨'
Parameters
Retour
Note