What's an increment

Tell us what’s happening:

Your code so far


var myVar = 87;

// Only change code below this line
myVar = myVar + 2;
myVar = myVar - 1;
//

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Safari/605.1.15.

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

In this context, increase a number by one.

i am not allowed to change the code above the line but i have to increase 87 to 88 but it can not be plus one so how am i suppose to do it

also i still don’t know what an increment is (++)

++ is a shorthand way to increase a variable value by one
You could write a = a + 1 to increase a variable by 1, but a++ does the same thing and t is much shorter

In this case you need to change the way the value of the provided variable is rises by 1, and use the shorthand way instead

thank you very much that worked and im onto the next lesson