How do i do the ++ operator without using the assignment operator
javascript
let myVar = 87;
// Only change code below this line
myVar = 87 + 1;
How do i do the ++ operator without using the assignment operator
javascript
let myVar = 87;
// Only change code below this line
myVar = 87 + 1;
Just type the name of the variable followed by ++
Both of those examples use the assignment operator.
Whoops.
Sorry, all you have to put is:
myVar++
or
++myVar
Use myVar++ or ++myVar
//Without using assignment operator
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.