javascript logical operator doesn't return correct value
<p>I have code like this.</p>

<pre class="lang-html prettyprint-override"><code>No1 : &lt;input type="text" name="no1"&gt;  value = 45
No2 : &lt;input type="text" name="no2"&gt;  value = 55

&lt;script&gt;
      var no1 = $('input[name=no1]').val();
      var no2 = $('input[name=no2]').val();
&lt;/script&gt;
</code></pre>

<p>But I check like this, it always returns <code>false</code>.</p>

<pre><code>parseFloat(no1) &lt; parseFloat(no2);
//false
</code></pre>

<p>Please explain theory behind this. I am new to javascript. I couldn't find it google either.</p>
