Javascript function execution order
<p>I am new to javascript and have a quick question. Say i have the following code:</p>

<pre><code>function entryPoint()
{
   callFunction(parameter);
}

function callFunction(parameter)
{
   ... //do something here
   var anotherFunction = function () { isRun(true); };
}
</code></pre>

<p>My question is that when <code>callFunction(parameter)</code> is called, and the variable <code>anotherFunction</code> is declared, does <code>isRun(true)</code> actually execute during this instantiation? I am thinking it doesnt and the contents of the anotherFunction are only "stored" in the variable to be actually executed line by line when, somewhere down the line, the call <code>anotherFunction()</code> is made. Can anyone please clarify the function confusion?</p>
