Code does't run even after using the correct syntax

Tell us what’s happening:

Your code so far


var myVar = 87;

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


console.log(myVar);

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; 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/

You don’t need the myVar =, it’s just myVar++

1 Like