We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1273ae4 commit e7953a4Copy full SHA for e7953a4
1-js/04-object-basics/04-object-methods/article.md
@@ -160,7 +160,7 @@ let user = {
160
let admin = user;
161
user = null; // overwrite to make things obvious
162
163
-admin.sayHi(); // Whoops! inside sayHi(), the old name is used! error!
+admin.sayHi(); // TypeError: Cannot read property 'name' of null!
164
```
165
166
If we used `this.name` instead of `user.name` inside the `alert`, then the code would work.
0 commit comments