Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.
Microsoft® JScript®
Comparison Operators
 Language Reference 
Version 1 

See Also


Description
Returns a Boolean value indicating the result of the comparison.
Syntax
expression1 comparisonoperator expression2

The Comparison operator syntax has these parts:

Part Description
expression1 Any expression.
comparisonoperator Any comparison operator.
expression2 Any expression.

Remarks
When comparing strings, JavaScript uses the Unicode character value of the string expression.

The following describes how the different groups of operators behave depending on the types and values of expression1 and expression2:

Relational (<, >, <=, >=)

Equality (==, !=) Identity (===. !==)
These operators behave identically to the equality operators except no type conversion is done, and the types must be the same to be considered equal.

Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.