title: Two pipe symbols (OR) in this Javascript line
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2851404/what-does-options-options-mean-in-javascript">What does &ldquo;options = options || {}&rdquo; mean in Javascript?</a>  </p>
  </blockquote>
  
  
  
  <p>I have seen this in JS:</p>
  
  <pre><code>item = item || {};
  </code></pre>
  
  <p>I'm guessing it's some variation of a ternary operator but what does is actually do?</p>