SOURCE

function Person() {
  this.name = 'saber';
  this.age = '22';
  
  Saber.prototype = Person.prototype;
}

Person.prototype.getName = function() {
	conole.log(this.name);
}

Person.prototype.getAge = function() {
  console.log(this.age);
}

function Saber() {
  
}

var a = new Person();
console 命令行工具 X clear

                    
>
console