> Funktiot
Palauttaa yhden merkin merkkijonon, jonka Unicode-koodipiste on codePoint: fromCodePoint(65) palauttaa "A". Se on codePointAt-funktion käänteisfunktio.
Yli 65535:n koodipisteet antavat merkkejä, kuten emojeja: fromCodePoint(128040) palauttaa "🐨".
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, jos codePoint ei ole kelvollinen koodipiste.null.String.fromCodePoint heittää RangeError-virheen alueen 0–1114111 ulkopuolella, ja Pythonissa chr heittää ValueError-virheen.Impossible de charger les données du jeu.
Vérifiez votre connexion et réessayez.