Increment a Number with JavaScript (++)

Tell us what’s happening:
Hey people, I am brand new here and running into some noob issues… While trying to complete the basic ++ operator challenge… I understand that the point of the exercise to eliminate the = however the instructions state the code with the equal sign should not be modified. From my point of view the instructions are conflicting since the sum can only equal 89. I would appreciate any help I can get so I can continue my journey.

Your code so far
‘’'var myVar = 87;

// Only change code below this line

myVar = myVar + 1;


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0 Safari/605.1.15.

Link to the challenge:

It seems you are misinterpreting the instructions, you need to remove that line

myVar = myVar + 1 should be changed

1 Like

you need to remove the myVar = myVar + 1 line. :wink:
also, what’s the myVar--; doing there?

Wrong link. This is the correct one:

1 Like

You are absolute right, I am not the sharpest tool in the shed but I am determined to learn… Thank you very much for the timely response.:sweat_smile:

That’s why you post on this forum. :wink: