4 ms·
Prototypes are only one approach to inheritance, of course! A fun other one (which Crockford quite likes) is Parasitic Inheritance, where Bar() is a function th
by TazeTSchnitzel 12y ago
Prototypes are only one approach to inheritance, of course! A fun other one (which Crockford quite likes) is Parasitic Inheritance, where Bar() is a function that takes the object Foo() returns and augments it.