Javascript "saves" function data in memory?
<p><a href="http://jsfiddle.net/yMc5K/" rel="nofollow">Example</a> :</p>

<pre><code>var myFunctArray=new Array();

for(var i=0; i&lt;10; i++) {
    addValues(i);
}

function addValues(myPoint)
{
    myFunct=function () {
        var myVar="Line " + myPoint;
        console.log(myVar);
    }    

    myFunctArray.push(myFunct);        
}

myFunctArray[3]();
</code></pre>

<p>when I call the 4° function, how can it remembers the value of myPoint? In fact it is Line 3 the output, so myPoint value must be "stored" somewhere, for each function. </p>

<p>So, it stores 10 "definitions" of <code>myFunct</code> in the stack memory?</p>

<p>Hope it is clear what I mean.</p>
