> 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) # '🐨'
null als codePoint geen geldig codepoint is.null terug.String.fromCodePoint een RangeError buiten 0 tot 1114111, en chr gooit een ValueError in Python.Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.