minor fixes
This commit is contained in:
parent
2af74029e2
commit
ce8e68f21c
5 changed files with 15 additions and 12 deletions
|
@ -149,8 +149,8 @@ let user = { name: "John" };
|
|||
let admin = { name: "Admin" };
|
||||
|
||||
// use call to pass different objects as "this"
|
||||
sayHi.call( user ); // this = John
|
||||
sayHi.call( admin ); // this = Admin
|
||||
sayHi.call( user ); // John
|
||||
sayHi.call( admin ); // Admin
|
||||
```
|
||||
|
||||
And here we use `call` to call `say` with the given context and phrase:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue