Basic JavaScript - Compound Assignment With Augmented Addition

Hello Friends,
I am stuck here …what is the wrong with this code?

Your code so far

let a = 3;
let b = 17;
let c = 12;
// Only change code below this line
let a = a + 15 ; 
let b = b + 26 ;
let c = c + 19 ;
a += 15;
b += 26;
c += 19;

Your browser information:

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

Challenge: Basic JavaScript - Compound Assignment With Augmented Addition

Link to the challenge:

The first problem is you are re-declaring the variables. The other problem is that the test want you to convert/replace the equivalent of myVar = myVar + 5 with myVar += 5, but you are keeping the old code and adding that after.

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