Codington
0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Change a let Variable

Use let when a variable needs to receive a new value later. An assignment can use the variable's current value to calculate its next value.

Example

let points = 4; points = points + 3; console.log(points);

This prints 7. Your score begins at a different value.

Your task

The score starts at 5. Increase the existing score by 2 so the console displays 7.