|
The following table describes the behavior of most JScript operators. The columns and rows represent the different types of expressions possible on either side of an operator in JScript, and the entries in the table describe the behavior.
An E indicates a run-time error. An N indicates a numeric result, or a Boolean result in the case of logical operators.
|
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.
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.