Tell us what’s happening:
Your code so far
var myVar = 87;
// Only change code below this line
myVar = myVar +1 ;
myVar = myVar ++;
myVar = 87 +1 ;
Your browser information:
Tell us what’s happening:
Your code so far
var myVar = 87;
// Only change code below this line
myVar = myVar +1 ;
myVar = myVar ++;
myVar = 87 +1 ;
Your browser information:
my assignments are here
myVar
should equal 88
myVar = myVar + 1;
should be changed (I can’t do this)
Use the ++
operator
Do not change code above the line
MY Answer is here
var myVar = 87;
// Only change code below this line
myVar = myVar +1 ;
myVar = myVar ++;
Not 100% on what you’re asking but have you tried:
myVar += 1;
Or if you only want to use the incrementer
delete all other lines and just use myVar++; as the only line below the comment
my assignments are here
myVar
should equal 88
(passed)
myVar = myVar + 1;
should be changed (I can’t do only this)
Use the ++
operator(passed)
Do not change code above the line(passed)
MY Solution is here
var myVar = 87;
// Only change code below this line
myVar = myVar +1 ;
myVar = myVar ++;
If you write
x = x + 1
you are adding 1 but is long
You can write x += 1
to make it shorter, and this is valid with any number
To make it even shorter, but it works only with adding 1, you can write
x++;
x++
does the same thing of x = x + 1
Try now, and remember that the line myVar = myVar + 1
should not be there when you have finished, the last error you are missing is because that line is there