Skip to content

Commit e7953a4

Browse files
committed
minor fixes
1 parent 1273ae4 commit e7953a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/04-object-basics/04-object-methods/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ let user = {
160160
let admin = user;
161161
user = null; // overwrite to make things obvious
162162

163-
admin.sayHi(); // Whoops! inside sayHi(), the old name is used! error!
163+
admin.sayHi(); // TypeError: Cannot read property 'name' of null!
164164
```
165165

166166
If we used `this.name` instead of `user.name` inside the `alert`, then the code would work.

0 commit comments

Comments
 (0)