Basic JavaScript - Compound Assignment With Augmented Addition

Tell us what’s happening:

Describe your issue in detail here.
let a = 3;

let b = 17;

let c = 12;
Convert the assignments for a , b , and c to use the += operator.

Your code so far

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

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

Your browser information:

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

Challenge Information:

Basic JavaScript - Compound Assignment With Augmented Addition

1 Like

Hi there and welcome to our community!

Note the example given in the challenge description:

let myVar = 1;
myVar += 5;
console.log(myVar); // 6

You have tried to assign your variables a little differently to this. Compare with the example and tweak them a little.

1 Like

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