|
|
|
|
|
by SketchySeaBeast
2889 days ago
|
|
To clarify I meant this example: var cons = function () {
this.a = 1;
this.b = 2;
}
var obj = new cons();
cons.prototype.b = 3;
cons.prototype.c = 4;
Was just confused as it seems to be applying class concepts to a function. |
|
Hopefully that all made sense!