, , , new ( ). Food , new Food(...).
, new , this. . , return, , new: , this .
:
Product.call(this, name, price); // <-- 1. Product is construct not fun
:
new Product(name, price)
... . , new Food(...). this. new Product(...) ( ) (this). .call(), - , this .
, .call undefined, new, , . return, undefined. , , : this .
, Product, Food . Food new Food(), , instanceof Food.
, , , :
instanceof Product- ,
Product.prototype, , new Food().