up
This commit is contained in:
parent
ab9ab64bd5
commit
97c8f22bbb
289 changed files with 195 additions and 172 deletions
20
1-js/06-advanced-functions/10-bind/3-second-bind/task.md
Normal file
20
1-js/06-advanced-functions/10-bind/3-second-bind/task.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
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();
|
||||
```
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue