Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • Hi, thanks a lot for your feedback. I've tried out your approach, so that countFunctions[0] is now a function and can be called. The problem, however, is that the "i" seems to be stucked at 3, so that no matter what I call - callFunctions[0], callFunctions[1], or callFunctions[2], the result is still count3. See jsfiddle.net/r5Nnp Commented May 19, 2014 at 7:27
  • Thanks for the hint, I've forgotten the parameter of the the IEFE so that no closure was built… See edit. Commented May 19, 2014 at 7:29