Game & App Building

Mission 4: Keep Score

A variable declared with let outside your functions persists between clicks — that's how a running score works. Every click handler just adds to the same score variable instead of resetting it.

Your turn

Open Coding Studio and display the score ON the stage itself (hint: stage.fillText("Score: " + score, 10, 20)) instead of only in the console.

Open Coding Studio
Ask JARVIS for a hint