Please Help me with my code

Tell us what’s happening:

You should use the += operator for each variable.

I am not passing the aforementioned part of the code

Your code so far

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

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1.2 Safari/605.1.15.

Challenge: Compound Assignment With Augmented Addition

Link to the challenge:

Hi and welcome to the forum.

You can only declare the each variable with var once. You need to remove the extra 'var’s.

Thank you very much JeremyLT. I greatly appreciate the assistance

1 Like

It worked!!! Again, thank you. I am very grateful!

1 Like