Tell us what’s happening:
Your code so far
var a = 3;
var b = 17;
var c = 12;
// Only change code below this line
a = a + 12; myVar a += 9
b = 9 + b; myVar b += 8
c = c + 7; myVar c += 5
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36
.
Challenge: Compound Assignment With Augmented Addition
Link to the challenge:
This is not correct syntax.
a = a + 12; myVar a += 9
See the syntax from the example.
myVar += 5;
You need to use +=
to increase the value of your variables a
, b
, and c
in the same way that the example used +=
to increase the value of myVar
.
Also, please don’t create duplicate posts. It’s preferred to keep single conversations on a single topic. Thanks.