title: Where to use "var' in javascript programs
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://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>  </p>
  </blockquote>
  
  
  
  <p>Hello,</p>
  
  <p>I am a self learned developer. Always, i write javascripts without the <code>var</code> for variables. But some javascripts use <code>var</code> for variables.</p>
  
  <p>Both worked well for me. I am bit confused by this. </p>
  
  <p>Is Writing scripts with <code>var</code> a standard form or they used only within classes ?</p>