It tells me not to modify code above line even when i have not done anything to the code above line

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

var a = 5;
var b = 12;
var c = 4.6;

// Only change code below this line
a = a * 5;
b = 3 * b;
c = c * 10;

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36

Challenge: Compound Assignment With Augmented Multiplication

Link to the challenge:

You should be using the *= operator.
For example:

var a = 5;
a *= 5;  // now 'a' equal 25.
1 Like

If you reset the code you should see that the variables above the Only change code below this line are all declared with let, not var.

let a = 5;
let b = 12;
let c = 4.6;

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.