Problem Statement
Which is true about TS arrays vs tuples?
Explanation
Tuples model a fixed-length, ordered list where each index can have its own type (e.g., `[string, number]`). They can be mutable or readonly, and tuple elements can even be optional.
Code Solution
SolutionRead Only
type Pair = [string, number]; const p: Pair = ['x', 1]; // Optional element example: type Log = [string, number?];
