Codefellows Javascript Foundations Night Course

Person Model

Create a classification of an object that describes a person in Javascript. It's constructor should take a name, parent name, and optional age. The object should have a #isDead method that returns a boolean based on if the age is set or not.

  var Person = function(name) {
    this.name = name;
  }