update post: Closure and this - How are variables resolved within functions?

This commit is contained in:
2020-08-03 09:09:51 +05:30
parent 5f603317b6
commit c9cd6e5f98
+1 -1
View File
@@ -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