From 126726656bc382d797413ea6a00d60275d7a7021 Mon Sep 17 00:00:00 2001 From: Bill Fienberg Date: Wed, 13 Jan 2021 23:03:49 -0600 Subject: [PATCH] Add missing word ``` - another misconception is that `this` points the instance + another misconception is that `this` points to the instance ``` --- get-started/ch3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/get-started/ch3.md b/get-started/ch3.md index 43be80556..182297563 100644 --- a/get-started/ch3.md +++ b/get-started/ch3.md @@ -267,7 +267,7 @@ If you're still feeling unclear or shaky about closure, the majority of Book 2, ## `this` Keyword -One of JS's most powerful mechanisms is also one of its most misunderstood: the `this` keyword. One common misconception is that a function's `this` refers to the function itself. Because of how `this` works in other languages, another misconception is that `this` points the instance that a method belongs to. Both are incorrect. +One of JS's most powerful mechanisms is also one of its most misunderstood: the `this` keyword. One common misconception is that a function's `this` refers to the function itself. Because of how `this` works in other languages, another misconception is that `this` points to the instance that a method belongs to. Both are incorrect. As discussed previously, when a function is defined, it is *attached* to its enclosing scope via closure. Scope is the set of rules that controls how references to variables are resolved.