Javascript Boolean type
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/8695341/why-does-new-booleanfalse-equals-false-in-javascript">Why does !new Boolean(false) equals false in JavaScript?</a>  </p>
</blockquote>



<pre><code>var b = new Boolean(null);


alert(b instanceof Boolean);

 if(b) {
    alert('cv');
    alert(b.toString());
 }
</code></pre>

<p>Why if code block is executed? Is b supposed to be a boolean type and evaluated as false?</p>

<p>Please explain thanks</p>
