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

Exercise prompt

Predict a Copied Value

Assigning a number from one variable to another copies its current value. If the first variable changes later, the copied number does not change with it.

Example

let temperature = 18; const morningTemperature = temperature; temperature = 22;

morningTemperature is still 18.

Your task

The starter copies originalScore before changing it. Predict the value of displayedScore, replace the 0 with your prediction, then run the code to compare.