From 32ae03a7a304e7f2257cc82ec9c09948243f3e67 Mon Sep 17 00:00:00 2001 From: Martijn Arts Date: Sat, 7 Nov 2020 13:43:48 +0100 Subject: [PATCH] Forgotten `()` in function call --- Week2/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Week2/README.md b/Week2/README.md index d7f6c5c4c..dbbec37c1 100644 --- a/Week2/README.md +++ b/Week2/README.md @@ -180,7 +180,7 @@ const wouter = { In this example `this` refers to the complete `wouter` object. If we execute `wouter.getFullName()`, we get back the value of `wouter.firstName` and `wouter.lastName`. ```js -wouter.getFullName; // Result: Wouter Kleijn +wouter.getFullName(); // Result: Wouter Kleijn ``` As you can imagine, this means that there can be multiple `this` keywords at play: the global `this` keyword (which refers to the `window` object) and a `this` keyword for every object that is created within the application.