ECMA-262-3 in detail. Chapter 6. Closures.
Read this article in: Russian.
Introduction
In this article we will talk about one of the most discussed topics related to JavaScript — about closures. The topic, as a matter of fact, is not new and was discussed many times; there is a considerable quantity of articles devoted to this essence (some of them are very good, for example, article of Richard Cornford noted in the list of the additional literature), however we will try to discuss and understand it more from the theoretical point of view, and also will look on how closures are made in ECMAScript from within.
Read more »
