java script comparison operator

+2 votes
54 views
asked Dec 18, 2012 in java script by sahana (2,250 points)

1 Answer

+1 vote
answered Dec 18, 2012 by john (4,220 points)

== This is the equal operator and returns a boolean true if both the operands are equal.

!= This is the not equal operator which returns a Boolean true if both the operands are not equal.

=== This is the strict equal operator and only returns a Boolean true if both the operands are equal and of the same type

> This is the greater than operator and returns a value of true if the left operand is greater than the right.

>= This is the greater than or equal operator, which returns true if the first operand is greater than or equal to the second

< This is the less than operator and returns true if the left operand is less than the right:

<= This is the less than or equal operator and returns true if the first operand is less than or equal to the second

...