Let’s take a look at two examples.
In the above example, we seal the object on line 14 and then test changing a property, adding a property, and deleting a property.
In the next example, we freeze the object on line 14 and then do the same thing to its properties.
You will notice that Object.isSealed() and Object.isFrozen() are also available for testing the objects.
Have a question, comment, concern, etc? Feel free to drop a comment, below.