Hi you happen to resetting the value of myVar, with the statement myVar = 88; Also I forgot to mention it doesn’t need to be myVar = myVar++. “myVar++” will increment the value of the variable automatically.
no, that’s a syntax error
also, the tests ask for the variable to be a specific number, but you don’t write that number in that code, you use the incrementing operator to raise the existing variable
this challenge is teaching about ++ operator
the three following lines do the same exact thing:
Hi so var myVar = 87. myVar is the variable and currently holds the number 87. Now we have to increment that value. We can do that with a syntax shortcut which would just be myVar++. Now myVar = 88. This can also work with subtraction myVar–; that would subtract one, from the current value.
As a reminder myVar = myVar + 1; is the same as myVar++;