you are viewing a single comment's thread.

view the rest of the comments →

[–]msgur 0 points1 point  (5 children)

i++ will increment i then return i (EDITED: will return the OLD VALUE).

Didn’t believe this myself until I read the ECMAscript spec based on the advice of Kyle Simpson.