Merge pull request #1546 from lumosmind/patch-14

function declaration vs function call conflict
This commit is contained in:
Ilya Kantor 2019-10-29 23:36:20 +03:00 committed by GitHub
commit e8947f7b58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -351,7 +351,7 @@ Please note the additional `[[Environment]]` property is covered here. We didn't
![](lexenv-nested-makecounter-3.svg)
Please note that on this step the inner function was created, but not yet called. The code inside `function() { return count++; }` is not running.
Please note that on this step the inner function was created, but not yet called. The code inside `return count++;` is not running.
4. As the execution goes on, the call to `makeCounter()` finishes, and the result (the tiny nested function) is assigned to the global variable `counter`: