Basic JavaScript - Increment a Number with JavaScript

Tell us what’s happening:
Describe your issue in detail here.
I have placed my code:
myVar++;
which comes out to the value 88 and appears as the correct answer, but still the code does not run and misses the “value must be 88” section.
with: myVar=87 myVar++; should be correct, still does not run

Your code so far

let myVar = 87;

// Only change code below this line
myVar = myVar + 1;
myVar++;

Your browser information:

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

Challenge: Basic JavaScript - Increment a Number with JavaScript

Link to the challenge:

Yau should only increment the variable once, not twice

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.