Horje
Object Property Shorthand javascript Code Example
Object Property Shorthand 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 }




Javascript

Related
what is code.jquery integrity crossorigin Code Example what is code.jquery integrity crossorigin Code Example
videojs videoJsResolutionSwitcher youtube Code Example videojs videoJsResolutionSwitcher youtube Code Example
what is indian contituition Code Example what is indian contituition Code Example
clear canvas content jquery Code Example clear canvas content jquery Code Example
jquery each hover Code Example jquery each hover Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7