function () {return this.greeting + ', ' + this.name + '!!!';}, {greeting: 'Hello', name: 'Rebecca'}
Hello, Rebecca!!!
function () {return this.greeting + ', ' + this.name + '!!!';}, {greeting: 'Hello', name: 'Rebecca'}Hello, Rebecca!!!
function speak(fn, obj) {
return fn.apply(obj);
}
function speak(fn, obj) {
return fn.call(obj);
}
function speak(fn, obj) {
return fn.bind(obj)();
} return (fn.bind(obj))()
function speak(fn, obj) { return fn.apply(obj, obj); }