https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/increment-a-number-with-javascript

Tell us what’s happening:

Your code so far


var myVar = 87;

// Only change code below this 
++myVar ;

Your browser information:

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

Challenge: Increment a Number with JavaScript

Link to the challenge:

Hello and welcome to the FCC community~!

Try removing the space before your ;. :slight_smile:

1 Like

@rajaga223 I think this is a bug with freecodecamp.org. Spaces shouldn’t make a difference in JavaScript, i.e. ++myVar; and ++myVar ; should do the same thing.

1 Like