Why variable is initialized to undefined eventhough block is not executed?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/500431/javascript-variable-scope">JavaScript Variable Scope</a>  </p>
</blockquote>



<pre><code>var flag = false;
if(flag === true)
{
     var you = "great";
}
</code></pre>

<p>Variable "you" is initialized with undefined, it shows undefined instead of showing reference error when printed. why?</p>
