JavaScript | JavaScript Objects | Question 10

Last Updated :
Discuss
Comments

What is the purpose of Object.freeze()?

To prevent new properties from being added

To make the object immutable

To prevent existing properties from being changed

All of the above

Share your thoughts in the comments