JS Built-ins
StringString.fromCharCodebeginner

String.fromCharCode() β€” uppercase alphabet range

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

The uppercase letters A–Z are codes 65–90.

Challenge: Implement getUppercaseLetter(n) that returns the nth uppercase letter (0-indexed, so 0 β†’ 'A', 25 β†’ 'Z').

getUppercaseLetter(0)  // β†’ 'A'
getUppercaseLetter(25) // β†’ 'Z'
πŸ’‘ Hints (1)
  • β€’ A = 65, B = 66, … Z = 90. So the nth letter is `String.fromCharCode(65 + n)`.