bradxr
8/5/2018 - 10:59 PM

Understand Own Properties

function Bird(name) {
  this.name = name;
  this.numLegs = 2;
}

let duck = new Bird("Donald");
let canary = new Bird("Tweety");

// name and numLegs are own properties because they are defined directly on the instance object