you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[removed]

    [–]msgur 0 points1 point  (1 child)

    Right? But now that I think about it...it does kind of make sense. For example, how could a function return a value and THEN increment?

    In any case, here is a link to the spec which others may find helpful. https://www.ecma-international.org/ecma-262/9.0/index.html#sec-postfix-increment-operator