closure
This commit is contained in:
parent
5b195795da
commit
964ed57c42
39 changed files with 365 additions and 461 deletions
|
@ -0,0 +1,5 @@
|
|||
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`.
|
Loading…
Add table
Add a link
Reference in a new issue