Get Programming with JavaScript - Listing 2.12
Listing 2.12 - Using template literals when logging variables
let playerLocation = "The Dungeon";
const playerName = "Kandra";
// use backticks and placeholders to display values
console.log(`${playerName} is in ${playerLocation}`);
playerLocation = "The Old Library";
console.log(`${playerName} is in ${playerLocation}`);