Post-Increment : Postfix operator « Operators « JavaScript Tutorial






The post-increment operator appears directly after the variable.

The operation begins by incrementing the variable by 1.

The post-increment operator returns the original value before it was incremented.

If either of the values is a string, an attempt is made to convert the string to a number.

2.2.Postfix operator
2.2.1.Post-Increment
2.2.2.Post-Decrement
2.2.3.Postfix operator: ++
2.2.4.Postfix operator 2: --