LearnFrenzy
Sign in Take a free test

Objects · JavaScript Objects MCQ · Question 6

freeze vs seal Answer, explanation & discussion

  • MCQ
  • Medium
  • 0 comments
  • Answer explained
  • Moderated community
Question 6 Back to Exercise

Which operation is allowed on a sealed object but not on a frozen one?

  • A Adding a new property
  • B Deleting a property
  • C Changing the value of an existing property Correct
  • D None – they are identical
Correct Answer: Option C

seal fixes the set of properties but leaves them writable; freeze also makes them read-only.

Discussion & Comments 0

Share your method, a shortcut, or ask about a step you didn't follow.

No comments yet. Be the first to share your solution!

Post your comment

Comments appear after a quick review by our team.

Search LearnFrenzy

Esc

Quick links