Explain it in 60 seconds
Object.freeze vs const
Frontend Engineering · JavaScript Core · Intermediate
What's the difference between const and Object.freeze?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- const: binding can't be reassigned.
- Object still mutable with const.
- freeze: object properties can't change (shallow).
- Nested objects not frozen.
- Strict mode throws on writes.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.