Code: Select all
var obj = {};
obj.id =
Moderators: Jon, Steve, Ian, Dave
Code: Select all
var obj = {};
obj.id =
Code: Select all
function person(first, last) {
this.firstName = first;
this.lastName = last;
this.debug= function() {return this.firstName + " " + this.lastName;};
}
person.prototype.age = 21;
person.prototype.fullName= function() {
return this.firstName + " " + this.lastName;
};
Users browsing this forum: No registered users and 4 guests