Increment a Number with JavaScript_

Tell us what’s happening:

Your code so far


var myVar = 87;

// Only change code below this line
myVar++ 

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript

What is wrong?

Are you not understanding why? Or, are you not passing the lesson?

You’re missing a semicolon at the end of the statement, that’s why it’s failing :slight_smile:

The semicolons is not required in JavaScript, but they are recommended.