Javascript: false && false is false? : <p>So, I've done some searching, looks like it hasn't been asked yet but I could be wrong. </p>

<p>Logically</p>

<pre><code>false &amp;&amp; false === true
false &amp;&amp; true === false
true &amp;&amp; false === false
true &amp;&amp; true === true
</code></pre>

<p><strong>HOWEVER</strong></p>

<p>It does not seem like this is the case for <code>javascript</code>. I ran the above in the <code>console</code> and this is what I get from FireFox &amp;&amp; Chrome:</p>

<pre><code>false &amp;&amp; false //console output: false
false &amp;&amp; true //console output: false
true &amp;&amp; false //console output: false
true &amp;&amp; true //console output: true
</code></pre>

<p>I've already found a <a href="https://stackoverflow.com/questions/35941501/java-false-false-work-around">solution</a> but seriously? Why? I would think this to be standard behavior.</p>

<p>It even says in <a href="https://docs.oracle.com/javase/tutorial/java/nutsandbolts/operators.html" rel="nofollow noreferrer"><code>Java</code> documentation</a> that <code>logical AND | &amp;&amp;</code>.</p>
