Why do some people assigning JavaScript variables like var example = window.example || {};
<p>I been seeing people assigning JavaScript variables such as:</p>

<pre><code>var example = window.example || {};
</code></pre>

<p>And I am wondering the reason for this. And yes I am already aware that || is the OR operator and {}; is a object literal.</p>

<p>Would be great if someone could answer, thanks!</p>
