// declaration
function Animal() { }
Animal.prototype.eat = function() {
console.log("nom nom nom");
};
// make instance of - this has some disadvantages
let animal = new Animal();
// use this syntax to make an instance of
let animal = Object.create(Animal.prototype);
animal.eat(); // prints "nom nom nom"
animal instanceof Animal; // => true