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

226 B

importance: 5


Second bind

Can we change this by additional binding?

What will be the output?

function f() {
  alert(this.name);
}

f = f.bind( {name: "John"} ).bind( {name: "Ann" } );

f();