en.javascript.info/1-js/06-advanced-functions/03-closure/1-counter-independent/solution.md
Ilya Kantor ab9ab64bd5 up
2017-03-21 14:41:49 +03:00

5 lines
197 B
Markdown

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 it's own `count`.