Propiedad de objetos taquigrafía javascript

// Object Property Shorthand javascript
// Object Property Shorthand javascript
// Longhand:
const x = 1920, y = 1080;
const obj1 = { x:x, y:y };
console.log(obj1) //{ x: 1920, y: 1080 }

// Shorthand:
const obj2 = { x, y };
console.log(obj2) // { x: 1920, y: 1080 }
Chetan Nada