javascript null conditional expression
<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>  </p>
</blockquote>



<p>In C#, you can do this:</p>

<pre><code>var obj = newObject ?? defaultObject;
</code></pre>

<p>That says assign <code>newObject</code> to <code>obj</code> if not null else assign <code>defaultObject</code>. How do I write this in javascript?</p>
