Javascript: need clarification about a particular type of variable declaration
<p>I've just started out with Javascript and I'm coming across declarations of the following type quite often:
<code>var var_name = window.var_name = window.var_name || {};</code>
Can someone explain what is the significance of such a declaration?</p>
