Use of || {} in Javascript
<p>I saw something like this in Javascript :</p>

<pre><code>   function name (secret) {
          secret = secret || {};
</code></pre>

<p>i can't find anywhere what exactly means <strong>secret = secret || {};</strong></p>

<p>Is that mean create global variable with value of passed argument or an object?</p>

<p>When do you use it? When there is no argument passed?</p>
