SOURCE

function Person(){}
Person.prototype.name="lie"
Person.prototype.sayname=function(){
    console.log(this.name)
}
let Person2=new Person();
Person2.sayname();

console 命令行工具 X clear

                    
>
console