Shorthand Syntax for Object Property Value in ES6
The shorthand syntax for object property value is very popular and widely used nowadays. The code looks cleaner and easy to read. The shorthand property makes the code size smaller and simpler.
Example: This example displaying the details of object using shorthand Syntax for object property value in ES6.
Example: This example displaying the details of the object without using shorthand Syntax for object property value.