JS Coding Questions Logo
JS Coding Questions
#283💼 Interview

What are the attributes provided by a property descriptor

Advertisement

728x90

A property descriptor is a record which has the following attributes

1. value: The value associated with the property

2. writable: Determines whether the value associated with the property can be changed or not

3. configurable: Returns true if the type of this property descriptor can be changed and if the property can be deleted from the corresponding object.

4. enumerable: Determines whether the property appears during enumeration of the properties on the corresponding object or not.

5. set: A function which serves as a setter for the property

6. get: A function which serves as a getter for the property

Advertisement

Responsive Ad
🎯 Practice NowRelated Challenge

JavaScript Coding Exercise 27

Test your knowledge with this interactive coding challenge.

Start Coding

Advertisement

728x90
283of476
What are the attributes provided by a property descriptor | JSCodingQuestions.com