From d3b38c28370191711eb9dfac8681b50b8962ffb6 Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Sun, 11 Oct 2020 17:16:04 +0300 Subject: [PATCH] minor fixes --- 1-js/04-object-basics/04-object-methods/article.md | 4 +++- 1 file changed, 3 insertions(+), 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 3e21ca08..0d3c1f39 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,9 @@ let user = { let admin = user; user = null; // overwrite to make things obvious -admin.sayHi(); // TypeError: Cannot read property 'name' of null! +*!* +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.