Javascript Code Process Flow (function within function)
<p>So my issue is, I have recently learned that javascript allows you to define a function within another function. However, I notice that such functions within other functions are not always explicitly called. Given this example,</p>

<pre><code>function main()
{
  function f1()
  {
    ...
  }
  ...
}
</code></pre>

<p>will f1 execute automatically as the main function executes? Does it matter where inside main f1 is defined (beginning or end)? What are the general rules when dealing with functions within other functions?</p>
