Merge pull request #1768 from leviding/patch-3

Fix minor typo error of 1-js/06-advanced-functions/03-closure/article.md
This commit is contained in:
Ilya Kantor 2020-02-23 17:19:41 +00:00 committed by GitHub
commit 87d03ce17b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -345,7 +345,7 @@ let arr = [f(), f(), f()];
A Lexical Environment object dies when it becomes unreachable (just like any other object). In other words, it exists only while there's at least one nested function referencing it.
In the code below, after the nested function is removed, its enclosing Lexical Environment (and hence the `value`) is cleaned from memory;
In the code below, after the nested function is removed, its enclosing Lexical Environment (and hence the `value`) is cleaned from memory:
```js
function f() {