en.javascript.info/1-js/06-advanced-functions/03-closure/3-counter-independent/solution.md
Ilya Kantor 964ed57c42 closure
2019-12-26 14:59:57 +03:00

196 B

The answer: 0,1.

Functions counter and counter2 are created by different invocations of makeCounter.

So they have independent outer Lexical Environments, each one has its own count.