minor
This commit is contained in:
parent
e76364de01
commit
bc9117e70f
10 changed files with 15 additions and 15 deletions
|
@ -157,7 +157,7 @@ let user = {
|
|||
let admin = user;
|
||||
user = null; // overwrite to make things obvious
|
||||
|
||||
admin.sayHi(); // wops! inside sayHi(), the old name is used! error!
|
||||
admin.sayHi(); // Woops! 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