Increment a Number with JavaScript..i couldnt complete it

Increment a Number with JavaScript..i couldnt complete it
0

#1

i couldnt complete this assignment:

Your code so far


var myVar = 87;

// Only change code below this line
//solution
var myVar = 87
myVar ++ ;
//end
//check the mistake

Your browser information:

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

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


#2

You don’t need to declare another myVar and assign it to a number.

All you need to do is just increment the variable myVar like you did on the last line. But just make sure there is no space between myVar and ++.


#3


i have tried it


#4

The tests are being too picky. The test do not like the space between ++ and ;


#5

thanks a lot …I finally got the answer