Compound assignment with augment addition

Tell us what’s happening:

HEY IVE BEEN TRYING TO THIS CODE BUT I GET CONFUSED I WOULD APPROPRIATE IT

Your code so far


var a = 3;
var b = 17;
var c = 12;

// Only change code below this line
a = a + 12;
b = 9 + b;
c = c + 7;
a += 3 ;
b += 17 ;
c += 12 ;

Your browser information:

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

Challenge: Compound Assignment With Augmented Addition

Link to the challenge:

a = a + 12 is doing the exact same thing as a += 12. It’s just saying “add 12 to the existing value of a”. This excercise is just teaching you what += does. You’re just supposed to re-write the given examples with the different syntax.