Availability: |
| ||||||||
Property/method value type: | Number primitive | ||||||||
JavaScript syntax: | - | +anOperand | |||||||
Argument list: | anOperand | A value that can reasonably be converted to a number |
The operand is evaluated and converted to a numeric value.
A positive value is unchanged.
A negative value is unchanged.
A string value will be converted to a Numeric value and replaced in context.
Although this is classified as a unary operator, its functionality is really that of an additive operator.
The result will be the value of the operand, cast to a Numeric type.
See also: | Additive operator, Unary operator |
Prev | Home | Next |
Portability | Up | Postfix decrement (--) |
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. |