mirror of
https://github.com/bendtherules/blog-hashnode-backup.git
synced 2026-08-18 21:51:56 +00:00
update post: Closure and this - How are variables resolved within functions?
This commit is contained in:
@@ -56,7 +56,7 @@ function outer() {
|
|||||||
fn();
|
fn();
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
Above, function inner will get *created* when outer() is called, and creation scope is `scope A`. But it is *called* later in `scope C`.
|
Here, function `inner` will get *created* when `outer` is called, and the creation scope is `scope A`. But it is *called* later in `scope C`.
|
||||||
|
|
||||||
|
|
||||||
## When function is created
|
## When function is created
|
||||||
|
|||||||
Reference in New Issue
Block a user