en.javascript.info/1-js/06-advanced-functions/03-closure/1-counter-independent/solution.md
Brent Guffens 9f193b9df0
Typo
2018-01-29 10:03:53 +01:00

5 lines
196 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 its own `count`.