Microsoft® JScript Operator Summary |
| Tutorial | | Home | Site Map |
|
JScript has a full range of operators, including arithmetic, logical, bitwise, and assignment operators.When several operations occur in an expression, each part is evaluated and resolved in a predetermined order. That order is known as operator precedence. You can use parentheses to override the order of precedence and force some parts of an expression to be evaluated before others. Operations within parentheses are always performed before those outside. Within parentheses, however, normal operator precedence is maintained.
When multiplication and division occur together in an expression, each operation is evaluated as it occurs from left to right. Likewise, when addition and subtraction occur together in an expression, each operation is evaluated in order of appearance from left to right.
Computational Logical Bitwise Assignment Description Symbol Description Symbol Description Symbol Description Symbol Unary negation - Logical NOT ! Bitwise NOT ~ Assignment = Increment ++ Less than < Bitwise Shift Left << Aggregate Assignment OP= Decrement -- Greater than > Bitwise Shift Right >> Multiplication * Less than or equal to <= Unsigned Shift Right >>> Division / Greater than or equal to >= Bitwise AND & Modulo arithmetic % Equality == Bitwise XOR ^ Addition + Inequality != Bitwise OR | Subtraction - Logical AND && Logical OR || Conditional (trinary) ?: Concatenation ,