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

172 B

importance: 5


Bound function as a method

What will be the output?

function f() {
  alert( this ); // ?
}

let user = {
  g: f.bind(null)
};

user.g();