Javascript Reference
Categories: Operators

javascript Operators <=

@March 15, 2008, 1:22 a.m.
<= Firefox/Netscape/NN 2 IE 3 ECMA 1  

  

The less-than-or-equal operator compares the values of operands on either side of the operator. If the numeric value of the left operand is smaller than or equal to the right operand, the expression evaluates to true. Strings are converted to their Unicode values for comparison of those numeric values.

 
Example
 
if (a <= b) {
    ...
}

Powered by Linode.