Compound Assignment With Augmented Subtraction problem

Compound Assignment With Augmented Subtraction problem
0.0 0

#1

Tell us what’s happening:
i am not able to pass this test please help guys

Your code so far

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

// Only modify code below this line

a = a - 6;
b = b - 15;
c = c - 1;
myVar -= a;
myVar -= b;
myVar -= c;
myVar -=11;
myVar -=9;
myVar -=3;
myVar = 11-6; //assigned 5
myVar = 9-15; //assigned -6
myVar = 3-2; //assignde 2


Your browser information:

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

Link to the challenge:


#2

Augmented Subtraction .
Instead of a = a - 6;
just do this a -=6;
and same goes with others too :

b -=15;
c -=1;


#3

kindly help me write the whole code…it doesnt work for me


#4

Hey, that’s not how it works, you have to understand what you’re doing,

Instead, explain us what you don’t understand, so we can help you :slight_smile:


#5

it has worked at last guys…thanks alot