Readonly Arrays Quiz
Multiple Choice Medium
Question
Which operation is NOT allowed on a `readonly number[]` array?
Hint
Readonly prevents mutations — methods that modify the array in place.
Explanation
A readonly number[] cannot be mutated. Methods like push, pop, splice, and sort are not available. You can still read elements, check length, and use non-mutating methods like map, filter, and slice.
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.