Search posts, tags, users, and pages
Binaya Giri
There are many different ways to explain the closure. I hope that the interpretation presented in this blog will be enough to deepen the understanding. Retaining a link to variables or methods defined inside the function, after it has already been ex...
shuo yang
show me the code
Why the new Function() constructor does not create a closure?
IMO: every function in JS is a closure, the function created by new Function() has the global-env as it's outer environment
shuo yang
show me the code
Why the new Function() constructor does not create a closure?
IMO: every function in JS is a closure, the function created by new Function() has the global-env as it's outer environment