Operator Behavior

Microsoft Office JScript

Microsoft® JScript® Operator Behavior  Language Reference 
Version 1 


The following table describes the behavior of most Microsoft 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.

 objasnsnumboolundefnull
objNENNNEE
asEEEEEEE
nsNENNNEE
numNENNNEE
boolNENNNEE
undefEEEEEEE
nullEEEEEEE

obj = object, as = alphanumeric string, ns = numeric string, num = number, bool = Boolean, undef = undefined, null = null value.