Javascript equality
<p>I have been trying to understand Javascript equality. Can you please tell me why the following line returns <code>false</code>?</p>

<pre><code>alert((function a(){}) == (function a(){})) // false
</code></pre>

<p>But as you can see from the following cases <code>&lt;</code> returns <code>false</code> but <code>&lt;=</code> returns <code>true</code>, which means <code>==</code> should return <code>true</code> but it is <code>false</code>. Do you have any idea, WHY?</p>

<pre><code>alert((function a(){}) &lt; (function a(){})) // false
alert((function a(){}) &gt; (function a(){})) // false
alert((function a(){}) &lt;= (function a(){})) // true
alert((function a(){}) &gt;= (function a(){})) // true
</code></pre>
