Category Archives: parasitic inheritance

JavaScript parasitic inheritance, power constructors and instanceof.

Abstract. This posting shows how one can make Crockford’s power constructor functions play nicely with the JavaScript keyword ‘instanceof.’ [update: March 18, 2008. I asked Crockford what he thinks about this pattern, and he actually discourages the use of ‘instanceof’ … Continue reading

Posted in instanceof, parasitic inheritance, power constructors | 5 Comments