Wednesday, April 13, 2011

How to use Comparison Operators in Java Script:


Equal (==) return true if operands are equal
Not equal (!=)  if the values of operands are not equal return true  
Strict equal (===) not only check values but also type if both equal return true else false.
Strict not equal (!==) return true if type or value of operands are not  equal.
Greater than (>) if left operand is greater than right return true;
Greater than or equal (>=) Returns true if the left operand is greater than or equal to the right operand.  
Less than (<) return true if left operand less than right operand.
Less than or equal (<=) return true if left operand is less or equal to right operand.

No comments:

Post a Comment