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

what wrong !?

you just need one line of code:


Thats it.

thanks but look

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


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