Postfix decrement (--) (Operator/postfix)

Decrement after access.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Property/method value type:Number primitive
JavaScript syntax:-anOperand--
Argument list:anOperandA numeric value that can be decremented

The operand is decremented by one.

The operand is evaluated first and is then decremented when the evaluation is completed

The associativity is from right to left.

Refer to the Operator Precedence topic for details of execution order.

See also:Associativity, Decrement value (--), Operator Precedence, Postfix expression, Postfix operator, Prefix decrement (--), Prefix expression

Cross-references:

ECMA 262 edition 2 - section - 11.3.2

ECMA 262 edition 3 - section - 11.3.2