Tag: inhertiance

  • Prototypes in JavaScript – FunFunFunction #16

    Let’s say that you have a food type, and you want to make lots of different instances of that food, such as waffles, and I don’t know why you’d want any other food than waffles, but maybe you like carrots or something. In that context, *food* is the prototype of *waffles* and *carrots*. Some of…