Specifications
operand1 + operand2
This operator returns the result of adding the two operands (operand1 and
operand2).
+ operator
See also + string operator.
++operand; // pre-increment
operand++; // post-increment
The pre-increment version of this operator increments the operand and
returns the value of the (now incremented) operand.
++ operator
The post-incremented version of this operator returns the value of the
operand and then increments the operand.
var result = operand1 - operand2; // subtraction
operand = -operand; // unary negation
The subtraction version of this operator returns the result of subtracting its
second operand (operand2) from its first operand (operand1).
- operator
The unary negation version of this operator returns the result of negating
(changing the sign) of its operand.
--operand; // pre-decrement
operand--; // post-decrement
The pre-decrement version of this operator decrements the operand and
returns the value of the (now decremented) operand.
-- operator
The post-decremented version of this operator returns the value of the
operand and then decrements the operand.
operand1 * operand2
This operator returns the result of multiplying the two operands (operand1
and operand2).
* operator
operand1 / operand2
This operator returns the result of dividing the first operand (operand1) by
the second operand (operand2).
/ operator
Note that division by zero is not an error. The result of division by zero is
Infinity.
operand1 % operand2
This operator returns the integer remainder (which may be 0) from the
division of operand1 by operand2.
% operator
String operators
393
Enfocus Switch 10










