SOURCE

function Person() {};

Person.prototype.name = 'timo';
Person.prototype.age = 3;

var person1 = new Person();
var person2 = new Person();

console.log(person1.name);
console.log(person2.name);
console 命令行工具 X clear

                    
>
console