Assignment expression (Definition)

An expression that causes an assignment as a by-product.


ECMAScript edition - 2

Assignment expressions can be broken down into a two-operand expression with the result being assigned to the value on the left.

Note that assignment expressions can be used in their entirety as an RValue. You may want to void the assignment expression in some cases to prevent the result of the assignment being used inadvertently as an HREF.

See also:Add then assign (+=), Assignment operator, Concatenate then assign (+=), Expression, LValue, Multiply then assign (*=), Remainder then assign (%=), RValue, Subtract (-), var, Variable statement, void


ECMA 262 edition 2 - section - 12.2

ECMA 262 edition 3 - section - 12.2