M
Martin Rinehart
Is there a convention for setting up a prototype?
You could write:
Foo.prototype = {};
Foo.prototype.toString = function ...
Foo.prototype.other = ...
or you could write:
Foo.prototype = {
toString: function ...,
other:...
};
You could write:
Foo.prototype = {};
Foo.prototype.toString = function ...
Foo.prototype.other = ...
or you could write:
Foo.prototype = {
toString: function ...,
other:...
};