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,557
  • 4
  • 41
  • 57

0 Answers0