I am learning JavaScript from the book "The Good Parts" and on Page 33
, the author has written this piece of code:
Function.prototype.method = function (name, func) {
this.prototype[name] = func;
return this;
}
What does this
represent in this function?