A

Admin • 833.24K Points
Coach

Q. Which keyword prevents object modification?

  • (A) const
  • (B) Object.seal()
  • (C) Object.freeze()
  • (D) Object.prevent()
  • Correct Answer - Option(C)
  • Views: 28
  • Filed under category JavaScript
  • Hashtags:

Explanation by: Admin

Object.freeze() prevents adding, removing, or modifying properties.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.