function User(name, age){ this.name = name; this.age = age; } var u2 = new User('Mike', 32); alert(u2.x); User.prototype.x = true; alert(u2.x);