title: Javascript AND operator within assignment
body: <p>I know that in JavaScript you can do:</p>
  
  <pre><code>var oneOrTheOther = someOtherVar || "these are not the droids you are looking for...";
  </code></pre>
  
  <p>where the variable <code>oneOrTheOther</code> will take on the value of the first expression if it is not <code>null</code>, <code>undefined</code>, or <code>false</code>. In which case it gets assigned to the value of the second statement. </p>
  
  <p>However, what does the variable <code>oneOrTheOther</code> get assigned to when we use the logical AND operator? </p>
  
  <pre><code>var oneOrTheOther = someOtherVar &amp;&amp; "some string";
  </code></pre>
  
  <p>What would happen when <code>someOtherVar</code> is non-false?<br>
  What would happen when <code>someOtherVar</code> is false?</p>
  
  <p>Just learning JavaScript and I'm curious as to what would happen with assignment in conjunction with the AND operator.</p>