minor
This commit is contained in:
parent
8fc01fa0fe
commit
a4a16fccd6
8 changed files with 105 additions and 26 deletions
|
@ -161,7 +161,7 @@ let user = {
|
|||
let admin = user;
|
||||
user = null; // overwrite to make things obvious
|
||||
|
||||
admin.sayHi(); // Woops! inside sayHi(), the old name is used! error!
|
||||
admin.sayHi(); // Whoops! inside sayHi(), the old name is used! error!
|
||||
```
|
||||
|
||||
If we used `this.name` instead of `user.name` inside the `alert`, then the code would work.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue