Increment a Number with JavaScript //myVar = myVar should be changed

what wrong !?

you just need one line of code:

myVar++;

Thats it.

thanks but look

Nah…
You need to delete all the lines and add the code:

myVar++;

Just the above code.

So your code should overall look like this:

var myVar = 87; // this is where you initialise myVar to 87

myVar++;  // this increments the value of myVar by 1.

aah Ok :woman_facepalming:
thanks :sweat_smile:

u r wlcom :slight_smile:

1 Like