title: What does "variable || {}" in javascript?
body: <p>I've seen some code in the form of:</p>
  
  <pre><code>var vendorcode = vendorcode || {};
  </code></pre>
  
  <p>I've always thought that <code>||</code> was a logical operator.  But this one is a real doozy.</p>