Previous PageNext Page

7.4.1 Operator Behavior

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 © 2000 Chili!Soft

Previous PageTop Of PageNext Page