en.javascript.info/1-js/06-advanced-functions/10-bind/3-second-bind/task.md
Ilya Kantor 97c8f22bbb up
2017-03-21 17:14:05 +03:00

20 lines
226 B
Markdown

importance: 5
---
# Second bind
Can we change `this` by additional binding?
What will be the output?
```js no-beautify
function f() {
alert(this.name);
}
f = f.bind( {name: "John"} ).bind( {name: "Ann" } );
f();
```