Why is `x && return` invalid?
<p>I know that you can do this:</p>

<pre><code>function first(a){
    a &amp;&amp; console.log("true");
}
</code></pre>

<p>which is the same as:</p>

<pre><code>function first(a){
    if(a){
        console.log("true");
    }
}
</code></pre>

<p>However, when I tried this:</p>

<pre><code>function first(a){
    a &amp;&amp; return false
}
</code></pre>

<p>It doesn't work, and it throws me an error. Why is it giving me an error?</p>
