Operator Summary
The following tables list JScript operators. Each name in the description column links to a corresponding topic that explains the proper syntax and use.
Computational Operators
Description |
Symbol |
---|---|
+ |
|
-- |
|
/ |
|
++ |
|
% |
|
* |
|
- |
|
- |
All computational operators perform calculations with numeric data. The addition operator also performs string concatenation when either operand is a string.
Logical Operators
Description |
Symbol |
---|---|
== |
|
>= |
|
> |
|
=== |
|
in |
|
!= |
|
<= |
|
< |
|
&& |
|
! |
|
|| |
|
!== |
A logical operator returns a Boolean value. Depending on the operator, the value may represent the result of the comparison, test, or combination.
Bitwise Operators
Description |
Symbol |
---|---|
& |
|
<< |
|
~ |
|
| |
|
>> |
|
^ |
|
>>> |
Bitwise operators operate on the binary representation of the operands. If operands are not compatible with each other, they will be coerced to the appropriate type. For more information, see Coercion By Bitwise Operators.
Assignment Operators
Description |
Symbol |
---|---|
= |
|
+= |
|
&= |
|
|= |
|
^= |
|
/= |
|
<<= |
|
%= |
|
*= |
|
>>= |
|
-= |
|
>>>= |
All assignment operators return the value that is assigned to the left operand.
Miscellaneous Operators
Description |
Symbol |
---|---|
, |
|
?: |
|
delete |
|
instanceof |
|
new |
|
typeof |
|
void |