What's the difference between && and || in JavaScript? : <p>Here's a perfect illustration I saw.</p>

<p>&amp;&amp; </p>

<pre><code>if (num &gt; 5 &amp;&amp; num &lt; 10) {
return "Yes";
}
return "No";
</code></pre>

<p>||</p>

<pre><code>if (num &gt; 10 || num &lt; 5) {
return "No";
}
return "Yes";
</code></pre>

<p>What's the difference between these two?</p>
