shorthand property

🚧 under construction

JSvalueobjectproperty ⟩ shorthand property

⭐️ ES6 (2015)

🚧 description

let x = 1, y = 2;
let o = { x, y };    // shorthand property: instead of {x: x, y: y}

Last updated