Can’t seem to figure this out.

# What is the solution to the exercise: Compound Assignment With Augmented Addition for Javascript

What is the solution to the exercise: Compound Assignment With Augmented Addition for Javascript

0.0
0

**annajuare**#2

var a = 3;

var b = 17;

var c = 12;

// Only modify code below this line

a += a + 9;

b += b + -8;

c += c + -5;

**raphey**#3

I think your code gives the correct values for a, b, and c, but what there looking for is simpler than what you have. For example, just increase a by 12, rather than increasing a by (a + 9). One of the big ideas with the “+=” notation is to avoid having your variable appear on the right side of the “+=”.

**amoghshetti**#6

It says to Convert the assignments for a, b, and c to use the += operator. then below in the checklist section it mentions---- a should equal 15

b should equal 26

c should equal 19

Hence sollution

var a = 3;

var b = 17;

var c = 12;

// Only modify code below this line

a = a += 12;

b = b += 9;

c = c += 7;