Concepts
Data descriptor
Descriptor representing a stored value with a writable attribute. Enumerable and configurable govern key selection and redefinition restrictions.
Formal Syntax & Structure
javascript syntaxjavascript
{ value: value, writable: boolean, enumerable: boolean, configurable: boolean }Working Example
Example Snippetjavascript
const o={};Object.defineProperty(o,"n",{value:3,writable:true});o.n=8;console.log(o.n);