JS Built-ins
StringString.fromCharCodeintermediate

String.fromCharCode() โ€” special characters

๐Ÿ“– Usage Example
String.fromCharCode(65)        // โ†’ 'A'
String.fromCharCode(97)        // โ†’ 'a'
String.fromCharCode(72, 105)   // โ†’ 'Hi'

Use String.fromCharCode() to create a string from one or more UTF-16 char code values.

String.fromCharCode() โ€” Special Characters

Char codes beyond the basic ASCII range represent extended characters, like accented letters.

Challenge: Implement getChar(code) using String.fromCharCode.

getChar(169) // โ†’ 'ยฉ'
getChar(174) // โ†’ 'ยฎ'
๐Ÿ’ก Hints (1)
  • โ€ข `String.fromCharCode` works for any UTF-16 code unit, not just ASCII.