I need help again ;-;

Tell us what’s happening:
well the script i have is being weird and i dont understand what im supposed to do cause anything i do has an error ;-; help

Your code so far

var myVar = 87;

// Only change code below this line
myVar ++ 1;

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 13505.111.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.152 Safari/537.36.

Challenge: Increment a Number with JavaScript

Link to the challenge:

HI @AScriptingNoob !

If you want to say myVar = myVar + 1;
Then you can use the shorthand property of variable name++

I would re-read the instructions for the challenge again very carefully:

You can easily increment or add one to a variable with the ++ operator.


is the equivalent of

i = i + 1;

1 Like

but my problem here is where i put the ++ :confused:

Again, look at the instructions:

i = i + 1; is the same thing as i++;

The default code in the challenge is:

myVar = myVar + 1;

Does that look similar to one of the expressions in the instructions?

OH THANK YOU i understand now i just needed to look harder

Congrats! Ya, we all miss things the first time and sometimes need someone else to help see them :slight_smile:

1 Like