SOURCE

function Person() {
  
}

Person.prototype.name = "jack";
Person.prototype.age = 22;
Person.prototype.address = "GY";
Person.prototype.sayName = function() {
  alert(this.name);
}
console 命令行工具 X clear

                    
>
console