Javascript object creation?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/6439579/what-does-var-foo-foo-mean-in-javascript">What does &ldquo;var FOO = FOO || {}&rdquo; mean in Javascript?</a>  </p>
</blockquote>



<p>I am finding this kind of statement in javascript object creation repeatedly.</p>

<pre><code> var MyObj = MyObj || {};
</code></pre>

<p>Could some one could explain the significance of the above statement?</p>

<p>why can't we create just </p>

<pre><code>var MyObj = {};
</code></pre>

<p>Thanks.</p>
