Object Destructuring in JavaScript
extract values from the properties of an object into distinct variables. This feature was added in the ES6 version of JavaScript.
extract values from the properties of an object into distinct variables. This feature was added in the ES6 version of JavaScript.
Javascript Property Descriptors allow us to configure a JavaScript Property using the flags like enumerable, writable & configurable. We can read the Property descriptors using the getOwnPropertyDescriptor and alter them using the defineProperty
JavaScript Property Descriptors Enumerable, Writable & Configurable Read More »
DefineProperty is one of the ways in which you can add a new property to a JavaScript Object. You can also use it to Modify the property. We usually use it, when we want to alter the property descriptors or flags.
The Getters and Setters are known as accessor properties in JavaScript. They look like normal properties but are actually functions mapped to a Property. The Setter function runs when we assign a value to the Property. The Getter function runs when we access the Property.
In this tutorial. we will learn more about the Properties of JavaScript objects. We will how to create a Property, how to add a Property, how to access it and how to delete it.