function Person() { } Person.prototype.name = "jack"; Person.prototype.age = 22; Person.prototype.address = "GY"; Person.prototype.sayName = function() { alert(this.name); }