title: Why NaN is greater than any number in JavaScript?
body: <p>Here is an example:</p>
  
  <pre><code>parseInt(50) &gt; parseInt('a');
  </code></pre>
  
  <p>When executing this on a console, it will return <code>false</code>. My original code looks somewhat like this:</p>
  
  <pre><code>variableB = parseInt(jQuery('some-element').html());
  if(parseInt(variableA) &gt; variableB)
       // do something
  else
       // do something else
  </code></pre>
  
  <p>Sometimes the <code>some-element</code> will not be filled and thus return <code>NaN</code>. When this happens, I do want the <code>else</code> block to be executed. I am actually getting what I expect, but I just want to make sure that it indeed is intended to work this way.</p>