minor fixes

This commit is contained in:
Ilya Kantor 2019-11-28 13:56:48 +03:00
parent 2af74029e2
commit ce8e68f21c
5 changed files with 15 additions and 12 deletions

View file

@ -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: