Javascript Variables Initialization
<p>There is one thing in JavaScript which I can't understand.</p>

<p>When we declare a variable like this:</p>

<pre><code>var var_Name
</code></pre>

<p>it called <em>Local Variable</em>.</p>

<p>When we declare a variable like this:</p>

<pre><code>var_Name
</code></pre>

<p>it called <em>Global Variable</em>.</p>

<p>When exactly the browser resets their values? Once the page refreshes?</p>

<p>What I mean is, when the pages loaded, I declare a variable, and by the time, I increases it's value. When the value is going to set back to it's original initialization? When I refresh the page? or if it's a <em>Local Variables</em> it refreshes right away after stopping using it and if it's <em>Global variable</em> it refreshes only when the page refreshes?</p>

<p>Thanks!</p>
