# Basic JavaScript - Compound Assignment With Augmented Addition

Tell us what’s happening:
Describe your issue in detail here.
I Dont know how to solve this

Your code so far

``````let a = 3;
let b = 17;
let c = 12;
// Only change code below this line
let a = a + 15 ;
let b = b + 26 ;
let c = c + 19 ;
a += 15;
b += 26;
c += 19
``````
``````let a = 3;
let b = 17;
let c = 12;
// Only change code below this line
let a = a + 15 ;
let b = b + 26 ;
let c = c + 19 ;
a += 15;
b += 26;
c += 19
``````

Your browser information:

User Agent is: `Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/110.0`

Challenge: Basic JavaScript - Compound Assignment With Augmented Addition

Link to the challenge:

You don’t need to declare new variables. Change only the following three code lines:

``````a = a + 12;
b = 9 + b;
c = c + 7;
``````

into code pattern which do both a mathematical operation and assignment in one step.
For example, the ‘a’ variable has been declared and number 3 is assigned to this variable. So, the variable ‘a’ contains now number 3. Then, in the `a = a + 12;` ‘a’ on the right side of the ‘=’ operator you have 3 + 12. The sum is 15 and it represents the new value, assigned to a variable ‘a’. That is why we can use the pattern `a += 12`. It is the same as `a = a + 12`.

Mod edit: removed solution

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

thanks for suggestion.

1 Like