المعرفة:: JavaScript
الحالة::مؤرشفة
المراجع:: JavaScript Essential Training
Math Operators
Increment and Decrement
- If used postfix, with operator after operand (for example, x++), the increment operator increments and returns the value before incrementing.
- If used prefix, with operator before operand (for example, ++x), the increment operator increments and returns the value after incrementing.