A
Andrew Poulos
If I have a "factory" that is in this form:
function ma() {
blah;
}
ma.prototype.a = function() {
blah2;
}
var obj = new ma()
and I have a "library" that's of this form:
ma = {
a: function() {
blah2;
},
b: blah;,
}
Is there any advantage using one over the other? I've done a google and
have found out some things about both but I don't have enough
programming theory to make a decision.
Andrew Poulos
function ma() {
blah;
}
ma.prototype.a = function() {
blah2;
}
var obj = new ma()
and I have a "library" that's of this form:
ma = {
a: function() {
blah2;
},
b: blah;,
}
Is there any advantage using one over the other? I've done a google and
have found out some things about both but I don't have enough
programming theory to make a decision.
Andrew Poulos