Why the result of bool(true) && string is string in javascript?
<p>test code is:</p>

<pre><code>console.log(true &amp;&amp; "abc");//abc
</code></pre>

<p>who can tell me why the result is <code>abc</code>?</p>
