Relational operators are used in relational expressions and always yield a Boolean result.
Although generally considered to be member of the relational operator set, equality and non-equality tests are classified as equality operators in the ECMA standard.
The following table lists all operators that could be loosely classified or specifically classified as relational operators:
Operator | Description |
---|---|
== | Equal to |
=== | Identically equal to |
!= | NOT equal to |
!== | NOT identically equal to |
< | Less than |
<= | Less than or equal to |
> | Greater than |
>= | Greater than or equal to |
It follows that all equality operators are generally classifiable as relational operators and all relational operators are members of the set of logical operators, since they all yield a Boolean value as a result.
ECMA 262 edition 2 - section - 11.8
ECMA 262 edition 3 - section - 11.8
Wrox Instant JavaScript - page - 19
Prev | Home | Next |
Relational expression | Up | releaseEvents() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |