How it works...

In this recipe, we see that object properties are not simple key-value pairs. They have attributes that governern their behavior. One of these properties is writable. This property means that we can reassign the value afterwards. By default, this property is set to true; using Object.defineProperty we can see other values.

We'll see how other properties can be used to control other behaviors.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.224.33.254