Using logical operands in javascript with objects
<p>I came across the use of the logical operand <code>&amp;&amp;</code> with objects however would like to know whether expressions are evaluated in the manner below only when dealing with objects.</p>

<p><strong>Code Sample</strong></p>

<pre><code>var sampleObject = {
            size: 10, 
            shoe: {
                make: "nike",
                model: "air jordon"
            },
            color: "red"
            }

    console.log(sampleObject.size &amp;&amp; sampleObject.shoe.model);
</code></pre>

<p>The out of <code>console.log(sampleObject.size &amp;&amp; sampleObject.shoe.model);</code> returns <code>air jordon</code>. My understanding is that because the first condition i.e. <code>sampleObject.size</code> evaluated to true and isn't <code>falsely</code> it returns the value contained in the object <code>sampleObbject.shoe.model</code>.</p>
