Explain it in 60 seconds
The readonly modifier
Frontend Engineering · TypeScript · Beginner
What does readonly do in TypeScript?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Prevents reassignment of properties at compile time.
- readonly arrays, ReadonlyArray.
- Readonly<T> utility.
- Shallow.
- No runtime effect.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.