Skip to content

Commit d3b38c2

Browse files
committed
minor fixes
1 parent 3fbbcd1 commit d3b38c2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: 1-js/04-object-basics/04-object-methods/article.md

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

163-
admin.sayHi(); // TypeError: Cannot read property 'name' of null!
163+
*!*
164+
admin.sayHi(); // TypeError: Cannot read property 'name' of null
165+
*/!*
164166
```
165167

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

0 commit comments

Comments
 (0)