Confusion about increment & decrement in JS , please explain in easy way . | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Confusion about increment & decrement in JS , please explain in easy way .

12th Oct 2020, 5:17 PM
Gaurav Kumar
Gaurav Kumar - avatar
3 Answers
+ 4
JS var i = 0; i++ //i = 1
12th Oct 2020, 6:20 PM
Steve Sajeev
Steve Sajeev - avatar
+ 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
12th Oct 2020, 5:21 PM
Steve Sajeev
Steve Sajeev - avatar
+ 2
can you give an example on this topic
12th Oct 2020, 5:30 PM
Gaurav Kumar
Gaurav Kumar - avatar