title: Why isn't undefined less than 1?
body: <p>So in most cases I've been able to use something similar to these lines, but Javascript has given me this weird result.</p>
  
  <p>If I take some value and it turns out to be undefined, when compared to an integer, it does not appear to be less than or greater than any number. Why is this?</p>
  
  <pre><code>if(undefined &lt; 1 || undefined &gt;= 1)
      alert("yes");
  else
      alert("no");
  
  //this always alerts no
  </code></pre>
  
  <p><a href="http://jsfiddle.net/2FCG4/1/" rel="noreferrer">JSFiddle</a></p>