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:
commit
87d03ce17b
1 changed files with 1 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue