what does the "||" in a var statement mean?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/476436/null-coalescing-operator-for-javascript">null coalescing operator for javascript?</a><br>
  <a href="http://stackoverflow.com/questions/2851404/what-does-options-options-mean-in-javascript">What does &ldquo;options = options || {}&rdquo; mean in Javascript?</a>  </p>
</blockquote>



<p>Can someone explain me this expression? I stumbled accros the javascript line of code and I wondered what it means.</p>

<pre><code>var node = element.node || element[element.length - 1].node;
</code></pre>

<p>node get's used like this below:</p>

<pre><code>if (node.nextSibling) {
            node.parentNode.insertBefore(this.node, node.nextSibling);
        } else {
            node.parentNode[appendChild](this.node);
        }
</code></pre>

<p>At first i though node should be a boolean or something but it's not.
Am I correct if i think that the meaning is: node is element.node but if the node attribute is  undefined node is the last element in the array of element?</p>
