Fill: Tuple Type
Fill in the Blank Medium
Question
Fill in the blank to declare a tuple of [string, number]:
Code
let pair: ___ = ["code", 123];
Hint
Tuples use square brackets with types listed in order.
Explanation
The tuple type is [string, number]. The full line is let pair: [string, number] = ["code", 123];. Tuples specify exact types at each position, unlike regular array types.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.