+ 1
Can anyone discuss on pre and post increments?
2 Answers
+ 1
Let var a = 0;
if you do
var b = a++;
b will get a's value then a will increment (b = 0 and a = 1)
if you do
var b = ++a;
a will increment then b will get a's value (b = a = 1)
+ 1
great point got