0

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?

Rajat Saxena
  • 3,834
  • 5
  • 45
  • 63

0 Answers0