Basic JavaScript - Increment a Number with JavaScript

How do i do the ++ operator without using the assignment operator

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.


Sorry, all you have to put is:




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.