Problem Statement
Correct typed array of numbers:
Explanation
Use `number[]` or `Array<number>` to type numeric arrays. Mixing a string like "3" with numbers breaks type safety. `Array` without a generic is too loose, and `list<number>` is not a TypeScript type.
Code Solution
SolutionRead Only
const a: number[] = [1, 2, 3]; const b: Array<number> = [4, 5, 6]; // const bad: number[] = [1, '3']; // ❌
