Why is (1 < NaN) false in JavaScript?
<p>Why does <code>(1 &lt; NaN)</code> give back <code>false</code> and not <code>undefined</code> (in JavaScript)?</p>

<p>In "11.8.5 The Abstract Relational Comparison Algorithm" it says that if either of the values is NaN (after ToPrimitive and ToNumber which should not affect NaN in my view) the result is <code>undefined</code>. </p>

<p>In FF and Chrome I get:</p>

<pre><code>console.log(1 &lt; NaN);
// false
</code></pre>

<p>Why is that?</p>
