+ 1
Confusion about increment & decrement in JS , please explain in easy way .
3 ответов
+ 4
JS
var i = 0;
i++
//i = 1
+ 2
In JS, i++ will increase the number by 1.
And i-- will decrease the number by 1.
For more details please make ur question more clear. So i can understand, and help u
+ 2
can you give an example on this topic