Concepts
Property descriptor
Describes attributes of an ordinary data or accessor property. Data fields cannot be combined with accessor fields in a descriptor.
Formal Syntax & Structure
javascript syntaxjavascript
{ value, writable, enumerable, configurable } or { get, set, enumerable, configurable }Working Example
Example Snippetjavascript
const x={n:1};console.log(Object.getOwnPropertyDescriptor(x,"n").enumerable);