Get the latest tech news

Prototypal Inheritance (2008)


Douglas Crockford www.crockford.com Five years ago I wrote Classical Inheritance in JavaScript (Chinese Italian Japanese). It showed that JavaScript is a class-free, prototypal language, and that it has sufficient expressive power to simulate a classical system.

It showed that JavaScript is a class-free, prototypal language, and that it has sufficient expressive power to simulate a classical system. The object function untangles JavaScript's constructor pattern, achieving true prototypal inheritance. I have found that by using these tools, coupled with JavaScript's lambdas and object quasi-literals, I can write well-structured programs that are large, complex, and efficient.

Get the Android app

Or read this on Hacker News