Prefix increment (++) (Operator/prefix)

Increment an operand before access.

Availability:

ECMAScript edition - 2
JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Netscape Enterprise Server version - 2.0
Opera - 3.0
Property/method value type:Number primitive
JavaScript syntax:-++anOperand
Argument list:anOperandAn incrementable numeric value

The operand is incremented by 1

The operand is evaluated, converted to a numeric value, and incremented by 1.

Although this is classified as a unary operator, its functionality is really that of an additive operator.

The associativity is from right to left.

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

See also:Additive operator, Arithmetic operator, Associativity, Decrement value (--), Operator Precedence, Prefix expression, Prefix operator, Unary expression

Cross-references:

ECMA 262 edition 2 - section - 11.4.4

ECMA 262 edition 2 - section - 11.6.3

ECMA 262 edition 3 - section - 11.4.4