Object Enhancements

Abbreviations
*[JS]: JavaScript
Introduction
Objects are one of the most fundamental data structures in JavaScript, and you'll be working with them all the time. In ES2015, a few nice enhancements were introduced so that you can accomplish some tasks writing less code. Let's explore some of those newer object enhancements!
Object Shorthand
ES2015 provides quite a few enhancements for JS objects!
When the keys are the same name as the variable values, (this happens a lot), you don't have to repeat yourself.
Object Methods
A nice shorthand when a key in an object represents a function.
Computed Property Names
ES2015 allows us to create an object with a key that JavaScript can compute at definition.
Here’s what we mean by that!
Current Usage
These new shorthand methods are everywhere!
Object shorthand and methods allow for writing less code
Computed property names are everywhere in modern web frameworks.
Computed Property Names in the Wild
This appears when you work with multiple inputs or DOM elements, and you want to change the value in an object based on a specific interaction,
It's impossible to know upfront what key you are changing in the object without hard coding the key, so instead we can use the event object for a browser interaction.