javascript:execution context
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/14179840/javascriptfunction-context-window-context">Javascript:function context ,window context</a>  </p>
</blockquote>



<p>Does js engine execute the local function in window context?</p>

<pre><code>function foo()
{
   function fo()
  { 
  alert(this)//this points to window,so the nested function is getting executed on window context
   }

fo();
}
</code></pre>

<p>how does the local function is within the function object?</p>
