Get Programming with JavaScript - Listing 3.19
Listing 3.19 - Assigning variables to matching properties
const author = "Mark Twain";
const title = "The Adventures of Tom Sawyer";
const book = {
author,
title
};
console.log(book);