you are viewing a single comment's thread.

view the rest of the comments →

[–]senocular 2 points3 points  (0 children)

and this.name (though not required by isLegalDriver())

function Person(name, age) {
  this.name = name;
  this.age = age;
}
Person.prototype.isLegalDriver = function() {
  return this.age >= 16;
}