en.javascript.info/1-js/8-more-functions/7-bind/3-second-bind/task.md
Ilya Kantor d4c714cbe1 work
2016-08-05 16:53:08 +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();