title: javascript var or not var, what's the difference?
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>Hi All</p>
  
  <p>Declaring<code>var myVar;</code> with <code>var</code> keyword or declaring <code>myVar</code> without it.</p>
  
  <p>This might be a stupid question for some, but I'm in a learning process with javascript.</p>
  
  <p>Sometime, when reading other people's code, I see that some variables are declared without the 'var' at the front. Just to emphasise, these variables are not even declared as parameters of a function. </p>
  
  <p>So what's the difference between declaring a variable with or without the 'var' keyword?</p>
  
  <p>Many Thanks</p>