'or' statement in function call
<p>In a file I am looking at, I saw a <code>||</code> statement in a javascript function call what does it mean? </p>

<pre><code>createObject(a_variable || b_variable)
</code></pre>

<p>Does the function take in a true/false value or it take in something else?</p>

<p>is the above code equivalent to </p>

<pre><code>createanotherObject(a_variable ? a_variable : b_variable)
</code></pre>

<p>Which I saw right next to it.</p>
