Basic JavaScript - Compound Assignment With Augmented Addition

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

Hola, mi nombre es María, escribo porque la página se atascó, no puedo pasar a la siguiente lección.
Gracias.

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

// Only change code below this line
a += 15;
b += 26;
c += 19;

Your browser information:

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

Challenge: Basic JavaScript - Compound Assignment With Augmented Addition

Link to the challenge:

Let’s look at a. It is initialized to 3. The original code is:

a = a + 12;

This sets a to 15. Now you want to change that line to use the += operator, but after you make the change the value of a should still be 15. What you did:

a += 15;

Sets the value of a to 18.

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