Complete the code to define a tuple type with a string and a number.
let user: [1] = ['Alice', 30];
The tuple type [string, number] defines an array with exactly two elements: a string followed by a number.
Complete the code to define a tuple type with a boolean and a string.
const flag: [1] = [true, 'active'];
The tuple [boolean, string] expects a boolean first, then a string.
Fix the error in the tuple type definition to match the assigned value.
let data: [1] = [42, 'answer'];
The value [42, 'answer'] matches the tuple type [number, string].
Fill both blanks to define a tuple type with a number and a boolean, and assign a matching value.
const pair: [1] = [[2], false];
The tuple type [number, boolean] expects a number first, then a boolean. The value 42 matches the number type.
Fill all three blanks to define a tuple type with a string, number, and boolean, and assign a matching value.
let info: [1] = [[2], [3], true];
The tuple type [string, number, boolean] expects a string, then a number, then a boolean. The values 'hello' and 100 match the first two types.