title: JavaScript type casting
body: <p>Consider empty JavaScript array:</p>
  
  <pre><code>var a = [];
  alert(a == false); // shows true
  alert(!a); // shows false!
  </code></pre>
  
  <p>How to explain this?
  What are the rules?</p>