JavaScript: Property Attributes

By Xah Lee. Date: . Last updated: .

Property Attributes

Each property has associated info called attribute.

Data Property Attributes

Data Property Attributes
attribute namemeaning
value The property's value.
writable When true, the property's value can be changed.
enumerable When true, the property shows in some loop constructs, such as for-in Loop. [see Access Property]
configurable If false, you can't delete the property, nor change the property attributes (example: make it configurable again), nor change it to/from get/set property. But you may still change the value.

Accessor Property's Attributes

Getter/Setter Properties

Show Property Attributes

Set Property Attributes

JavaScript Property

βˆ‘ JS in Depth
XAH Β BUY NOW

JS in Depth

JS Obj Ref

DOM


JS in Depth

Basic Syntax

Value Types

Variable

String

Function

Property

Object and Inheritance

Array

Constructor/Class

Iterable 🌟

Misc