// Lecture: Function Constructors And Prototypes

/*
// function a() {}

// console.log(a.prototype);
// console.log(a.prototype.__proto__);

// var b = {};

function Person(firstname, lastname) {
  this.firstname = firstname;
  this.lastname = lastname;
  // this.getFullName = function() {
  //   return this.firstname + ' ' + this.lastname;
  // }
}

Person.prototype.getFullName = function() {
  return this.firstname + ' ' + this.lastname;
}

Person.prototype.greet = 'Hello from prototype object';

var person1 = new Person('John', 'Smith');
person1.greet = 'Hello from person1 object';
console.log(person1.greet);
var person2 = new Person('Nick', 'Doe');

console.log(person1.getFullName());
console.log(person2.getFullName());
console.log(person1.greet);
*/





