Windows vs Var to declare variable
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1470488/difference-between-using-var-and-not-using-var-in-javascript">Difference between using var and not using var in JavaScript</a><br>
  <a href="http://stackoverflow.com/questions/6904166/should-i-use-window-variable-or-var">Should I use window.variable or var?</a>  </p>
</blockquote>



<p>I have seen two ways to declare a class in javascript.</p>

<p>like</p>

<pre><code>window.ABC = ....
</code></pre>

<p>or </p>

<pre><code>var ABC = ....
</code></pre>

<p>Is there any difference in terms of using the class/ variable?</p>
