Junior JavaScript

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

Method Add

Props

Modify Delete

preventExtensio

ns()

❌ No ✅ Yes ✅ Yes

seal() ❌ No ✅ Yes ❌ No

freeze() ❌ No ❌ No ❌ No

More from JavaScript Tutorial

All questions for this course