At times you need to make sure an object cannot be changed. Since JavaScript objects are mutable, the only way to prevent that is using Object.freeze. We talk about why you may want to freeze an object and how you should do it in this tutorial.
Would you like to help keep this channel going?
/ allthingsjavascript
For more resources on JavaScript:
http://www.allthingsjavascript.com
Courses offered on Udemy: Getting Started or Advanced Topics at a huge discount:
https://www.udemy.com/learn-modern-ja...
https://www.udemy.com/learn-modern-ja...
New Mastering Regular Expressions in JavaScript:
https://www.udemy.com/mastering-regul...
#javascript #AllThingsJavaScriptLLC