From cb26b559bb0c865c40a1888bb0c2a08a7ed7086a Mon Sep 17 00:00:00 2001 From: "Anton A. Zabirko" Date: Fri, 10 Nov 2017 07:59:54 -0800 Subject: [PATCH] Clarity for this A more ideal explanation of `this` assigning --- .../06-advanced-functions/09-call-apply-decorators/article.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/1-js/06-advanced-functions/09-call-apply-decorators/article.md b/1-js/06-advanced-functions/09-call-apply-decorators/article.md index 4065c81a..01845e48 100644 --- a/1-js/06-advanced-functions/09-call-apply-decorators/article.md +++ b/1-js/06-advanced-functions/09-call-apply-decorators/article.md @@ -154,8 +154,8 @@ let user = { name: "John" }; let admin = { name: "Admin" }; // use call to pass different objects as "this" -sayHi.call( user ); // John -sayHi.call( admin ); // Admin +sayHi.call( user ); // this = John +sayHi.call( admin ); // this = Admin ``` And here we use `call` to call `say` with the given context and phrase: