A property descriptor is a record which has the following attributes
value: The value associated with the property
writable: Determines whether the value associated with the property can be changed or not
configurable: Returns true if the type of this property descriptor can be changed and if the property can be deleted from the corresponding object.
enumerable: Determines whether the property appears during enumeration of the properties on the corresponding object or not.
set: A function which serves as a setter for the property
get: A function which serves as a getter for the property
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.
We use cookies to ensure that we give you the best experience and use cookies in order to personalize the advertising that you see on our website. Read more about our Privacy Policy.Got it!