Question 7/22
intermediate
Select one answer

What is the difference between Object.freeze() and Object.seal()?

freeze allows modification, seal prevents all changes
freeze prevents all changes, seal only prevents adding new properties
Both do exactly the same thing
seal makes object iterable, freeze makes it non-iterable

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.