Eric Elliott takes a hard line on JavaScript’s “new”, “instanceof” and “class” keywords.

Eric Elliott takes a hard line on JavaScript’s “new”, “instanceof” and “class” keywords. In a nutshell, don’t use them.

In their place he suggests object factory functions which still create objects but do it via Object.create().

JavaScript: “the good parts” remains a small subset of the full language.

Leave a comment