JS Built-ins
StringString.fromCharCodebeginner

String.fromCharCode() β€” build a word

πŸ“– 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() β€” Multiple Codes

Pass multiple code values to build a string in one call.

Challenge: Implement buildWord(codes) that converts an array of char codes to a string.

buildWord([72, 105]) // β†’ 'Hi'
πŸ’‘ Hints (1)
  • β€’ Spread the array as arguments: `String.fromCharCode(...codes)`.