Skip to content

Instantly share code, notes, and snippets.

Function.prototype.myCall = function (context) {
var args = Array.prototype.slice.call(arguments, 1);
return this.apply(context, args);
}
sayHello = function (greeter, greetie) {
var message = greeter + " says hello to " + greetie + " from " + this;
console.log(message);
}