javascript ternary statement equivilance
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/5817578/javascript-is-z-xy-same-as-z-xxy-for-non-boolean">JavaScript: Is “z=(x||y)” same as “z=x?x:y” for non-boolean?</a>  </p>
</blockquote>



<p>Are the following two lines of code equivalent in javascript?</p>

<pre><code>a = b ? b : c

a = b || c
</code></pre>

<p>I want to express: "a should be assigned b if b is truthy, otherwise a should be assigned c"</p>

<p>I expect they would both work exactly the same, but I'm not 100% sure.</p>
