< Previous | Contents | Next >
After I create a variable to hold the player’s score and display it, I alter the score by increasing it by 100.
score = score + 100;
This assignment statement says to take the current value of score, add 100, and assign the result back to score. In effect, the line increases the value of score by 100.