Puzzle 12 of 15 · const bindings
Read a property update on an object declared with const. Predict whether the update succeeds and what the console log prints. Choose an output below, then check the explanation. No signup needed. Browse puzzles by topic →
1const player = { score: 1 }; 2player.score += 2; 3console.log(player.score);
Predict the console output. Each line is a separate log.
1
3
TypeError
undefined