Tell us what’s happening:
Hi everyone,
So far I have done everything right on the exercise, except for the part where it asks me to change “myVar = myVar + 1”.
I even tried reversing the original equation, as in “myVar + 1 = myVar”, but with no success as it turned out to be syntax error.
With that said, how could I successfully change it as the exercise is asking me to? Also, what would “change” mean in this case? How would any of the characters in the equation need to be modified?
Many thanks in advance.
Aldo
Your code so far
var myVar = 87;
// Only change code below this line
myVar = myVar + 1;
myVar = myVar++;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.77 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript