Object Initialization from Variables (Property value shorthand)
The new property value shorthand lets us abbreviate the initialization of a property within an object literal, provided that the property key matches an existing variable name.
Object Method Definition Shorthand
Object methods in ES5 require the function statement. This is no longer necessary in ES6; it permits a shorthand syntax.
It’s not possible to use ES6 fat arrow - function syntax here, because the method requires a name. That said, you can use arrow functions if you name each method directly (like ES5).
Dynamic (Computed) Property Keys
ES6 also enables the ability to have computed property keys in an object literal definition.
Any expression can be used to create a key.
A dynamic key can be used for methods as well as properties.