Tell us what’s happening:
Your code so far
var myVar = 87;
// Only change code below this line
myVar = myVar +1;
myVar = 88;
myVar = myVar ++;
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript
So you need to change the “myVar = myVar + 1” to use the “++” method they talk about. You don’t need the rest. For example, “newVar = newVar + 1” is the same as “newVar++”
Tell us what’s happening:
Your code so far
var myVar = 87;
// Only change code below this line
myVar = myVar +1;
myVar = 88;
myVar = myVar ++;
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript
When I run the code above, i get:
// running tests
myVar = myVar + 1; should be changed
// tests completed
In the instructions pay attention to the line that reads:
The entire line becomes i++;
, eliminating the need for the equal sign.