Compound Assignment With Augmented Subtraction stuck

Tell us what’s happening:

Your code so far


var a = 11;
var b = 9;
var c = 3;

// Only modify code below this line

a = a - 6;
b = b - 15;
c = c - 1;
a -= 6;
b -= 15;
c -= 2;

Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/compound-assignment-with-augmented-subtraction

You have to change the initial ones, not do them again using compound assignment. You are doing them twice this way and FCC tests for certain results.

1 Like

Like @RadoIIvanov said, you are essentially doubling up on your subtraction: 12 from a, 30 from b, and 3(! looks like a typo on your part) from c. Instead of adding a new set, just change the existing set. If you really want to show the “before/after” I suppose you could comment out the original subtraction set.