Get Programming with JavaScript - Listing 3.10

Listing 3.10 - Using dot notation to update a property

var player1; player1 = { name: "Max", attempted: 0, correct: 0 }; player1.attempted = 1; player1.correct = 1; player1.score = 50;