From e7953a475954e05600befd5a4b8a58398af62e49 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sun, 11 Oct 2020 17:14:36 +0300 Subject: [PATCH] minor fixes --- 1-js/04-object-basics/04-object-methods/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/04-object-basics/04-object-methods/article.md b/1-js/04-object-basics/04-object-methods/article.md index d3fbf3da..19f304a6 100644 --- a/1-js/04-object-basics/04-object-methods/article.md +++ b/1-js/04-object-basics/04-object-methods/article.md @@ -160,7 +160,7 @@ let user = { let admin = user; user = null; // overwrite to make things obvious -admin.sayHi(); // Whoops! inside sayHi(), the old name is used! error! +admin.sayHi(); // TypeError: Cannot read property 'name' of null! ``` If we used `this.name` instead of `user.name` inside the `alert`, then the code would work.