why without var?
<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>  </p>
</blockquote>



<p>seems stupid question but just curious.</p>

<pre><code>num = "hello";

alert(num);
</code></pre>

<p>why is this possible I didnt initialize the num variable here.</p>

<pre><code>num = "hello";
</code></pre>

<p>instead of</p>

<pre><code>var num = "hello";
</code></pre>
