Javascript challenge not working

So I am doing the basic Javascript course but on the lesson of Compound Assignment With Augmented Addition I am having issues. I enter in my code but it never checks the answer. It’s just the beaker icon the entire time. Here is the code that I have written.

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

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

If someone could help me with the glitch that would be great.

this is probably giving you invalid left side of assignment, erroring out and stopping the tests from executing

but other than that I imagine you should convert all to just the shorthand syntax, you just added a character everywhere

1 Like

Hi @Kaktoose !

Welcome to the forum!

I edited you post to include the challenge.
When asking for help on the forum, always include the challenge link so people can assist you better.

You should be seeing this in your console. Whenever you have errors the tests won’t run.

I don’t know how I missed that. Thank you, how do I fix the 9 then?

You can write all of them in the same format.

variable name += number
1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.