Prefix expressions operate on Left-Hand-Side (sometimes called LValue) expressions.
There are two prefix operators:
++ performs a numeric increment on the operand
-- performs a numeric decrement on the operand
These can also be classified as additive operators and because they modify a value in place, they also imply that an assignment takes place as well.
Prev | Home | Next |
Prefix decrement (--) | Up | Prefix increment (++) |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |