Javascript : White space string boolean conversion
<p>In Javascript :</p>

<pre><code>!!" " == true // =&gt; true
" " == true // =&gt; false

if ("  " == true){a = 1;} else {a = 0;}
a; // =&gt; 0

if ("  "){b = 1;} else {b = 0;}
b; // =&gt; 1
</code></pre>

<p>Any idea about what goes on here?</p>
