ES6 TIP: Use object literal shorthand to quickly output a variable with a label in the console!
Explanation
- Object literal shorthand allows you to create objects more concisely when the property names match the variable names.
Usage
To use object literal shorthand for console logging, use the following code:
const FirstName = 'Ash';
const LastName = 'Hitchcock';
console.log({ FirstName, LastName });