From 5f603317b68e751004f1092ce4e4ca1d38762cad Mon Sep 17 00:00:00 2001 From: Abhas Bhattacharya Date: Mon, 3 Aug 2020 09:07:41 +0530 Subject: [PATCH] update post: Closure and this - How are variables resolved within functions? --- ckddoqwv80154xvs198jkaa5m.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckddoqwv80154xvs198jkaa5m.md b/ckddoqwv80154xvs198jkaa5m.md index 66cf3d7..1d04974 100644 --- a/ckddoqwv80154xvs198jkaa5m.md +++ b/ckddoqwv80154xvs198jkaa5m.md @@ -32,7 +32,7 @@ In the same note, **how is `this` resolved within the function body?** A function has 2 distinct phases - function creation and function call. Function is created when you define it (with hoisting) in the lexical scope or creation scope. Now, this function can be stored in some variable and called much later - from the caller scope. These creation and caller scopes might be different. -All these sounds obvious, but it's easy to forget the difference. So, let's actually see the 2 phases for our `inner` function - +All of these sound obvious, but it's easy to forget the difference. So, let's actually see the 2 phases for our `inner` function - ```js function outer() {