If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Explanation of an example

Guys iam trying some examples , working with scopes etc. My question here is when it gets into the for loop the i = 0 , so it let j = 0 , and then its pushing into the array the function BUT its not execute it yet . When it finish the i = 1 and the j now is 0 right ? the same til the iteration finish . Now when we call the function it return an array with 3 functions . When i invoke the function in the array the j the three functions shoulnt be 3 ?

If you are having a problem with your code, please post a copy of the code here in the forum thread, please use Forum BBCode tags (see mu signature for tags), the problem with past bon sites is that codes get updated and people with similar problems can see how the code was altered through the posts made to the forum. It is also helpful to getting an answer quicker.