I would like to know if there is a difference between the following in JavaScript:
function Person(name, family) {
this.name = name;
this.family = family;
}
Person.prototype.getFull = function() {
return this.name + " " + this.family;
};
and
function Person(name, family) {
this.name = name;
this.family = family;
Person.prototype.getFull = function() {
return this.name + " " + this.family;
};
}