is prtotype an object or a method?
I think it is a method but the book I am reading, a translation of morrison's book, said it is an object.
Moderator: General Moderators
JavaScript's prototype object is an object that knows how to construct the object it belongs to.
Weirdan wrote:JavaScript's prototype object is an object that knows how to construct the object it belongs to.
That's a constructor, prototype is just that - an object above your current object in the prototype chain.
Users browsing this forum: No registered users and 0 guests