Problem Statement
readonly [number, string] guarantees…
Explanation
`readonly` prevents reassignment of tuple elements and disallows mutating methods. It does not deep-freeze nested object values—it’s a type-level immutability.
Code Solution
SolutionRead Only
const t: readonly [number, string] = [1, 'a']; // t[0] = 2; // ❌ cannot assign to read-only element