Get Programming with JavaScript - Listing 2.02
Further Adventures
To assign a value, use the assignment operator, =.
Listing 2.02 - Assigning a value to a variable - Task 4
- Change the value of score.
var score;
score = 2500;
To assign a value, use the assignment operator, =.
var score;
score = 2500;