Get Programming with JavaScript - Listing 3.17

Listing 3.17 - Using dot notation in templates

const book = { title : "The Hobbit", author : "J. R. R. Tolkien", published : 1937 }; console.log(`${book.title} by ${book.author}`);