Changes

JavaScript Operators

152 bytes added, 13:47, 20 April 2007
Comparison Operators
<table border="1">
<tr>
<th>Operator<th>Description<th>Example</th>
<tr>
<td>==<td>Equal operator - retuns ''true'' if both operands are equal.<td>x == 6 would return returns ''true'' if x is 6</td>
<tr>
<td>!=<td>Not-equal operator - returns ''true'' if operands are not equal.</td><td>x != 6 would return returns true if x is not 6</td>
<tr>
<td><<td>Less-than operator - returns ''true'' if the left hand operand is less than the right hand operand.<td>x < 6 returns ''true'' if x is less than 6</td>
<tr>
<td>><td>Greater-than operator - returns true if the left hand operand is greater than the left.<td> x > 6 retruns true is x is greater than 6</td>
</table>