Edit in JSFiddle

function Person() {}  // Person 생성자 함수 생성
Person.prototype.name = "nam";
Person.prototype.age = 33;
Person.prototype.sayName = function() {
  document.write(this.name);
};
function Car() {} // Car 생성자 함수 생성
Car.prototype.name = "Volvo";
Car.prototype.price = 4000;
Car.prototype.sayName = function() {
  document.write(this.name);
};

// Person으로 부터 생성
var person1 = new Person();
var person2 = new Person();
// Car로 부터 생성
var car1 = new Car();
var car2 = new Car();

// prototype.isPrototypeOf() 메서드 
document.write(Person.prototype.isPrototypeOf(person1)); // true
document.write("<br>");
document.write(Car.prototype.isPrototypeOf(person2)); // false
document.write("<br>");
// Object.getPrototypeOf() 메서드
document.write(Object.getPrototypeOf(person1) == Person.prototype); // true
document.write("<br>");
document.write(Object.getPrototypeOf(person2) == Car.prototype); // false