Get Programming with JavaScript - Listing 3.20

Listing 3.20 - Updating objects assigned to constants

const player1 = { name: "Max", attempted: 0, correct: 0 }; player1.attempted = 1; player1.correct = 1; player1.score = 50; const playerInfo = ` * ${player1.name} * has score * ${player1.score} `; console.log(playerInfo);