Compound Assignment

Tell us what’s happening:
Describe your issue in detail here.
Convert the assignments for a , b , and c to use the -= operator.
my answer which I have double checked online is …

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

// Only modify code below this line

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

And still I’m unable to proceed to the next assignment .

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.2 Safari/605.1.15

Challenge: Compound Assignment With Augmented Subtraction

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

// running tests
You should not modify the code above the specified comment.
// tests completed

You should probably undo the change you made above the comment // Only modify code below this line

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