Tell us what’s happening:
Your code so far
var myVar = 87;
// Only change code below this line
myVar = myVar + 1;
++myVar;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
.
Challenge: Increment a Number with JavaScript
Link to the challenge:
Welcome to the forum.
Nothing wrong with the question.
Test case 2:
You should not use the assignment operator.
HI @wosenn5 !
Welcome to the forum!
I would suggest resetting the lesson and looking at the FCC example again.
You can easily increment or add one to a variable with the ++ operator.
i++;
system
Closed
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.