// adding properties to the prototype individually
Bird.prototype.numLegs = 2;
// a more efficient way is to set the prototype to a new object that already contains the properties.
// this way, the properties are all added at once
Bird.prototype = {
numLegs: 2,
eat: function() {
console.log("nom nom nom");
},
describe: function() {
console.log("My name is " + this.name);
}
};