Microsoft® JScript Bitwise Operator Behavior |
Language Reference
|
The following table describes the behavior of Microsoft JScript bitwise operators. The columns and rows represent the different types of expressions possible on either side of an bitwise operator in JScript, and the entries in the table describe the behavior.
This table applies to the following bitwise operators:
An E in the table indicates a run-time error and an N indicates a numeric result.
obj | as | ns | num | bool | undef | null | |
---|---|---|---|---|---|---|---|
obj | N | E | N | N | N | E | E |
as | E | E | E | E | E | E | E |
ns | N | E | N | N | N | E | E |
num | N | E | N | N | N | E | E |
bool | N | E | N | N | N | E | E |
undef | E | E | E | E | E | E | E |
null | E | E | E | E | E | E | E |
obj = object, as = alphanumeric string, ns = numeric string, num = number, bool = Boolean, undef = undefined, null = null value.