For starters, JavaScript’s weak typing allows for all kinds of crazy ass coercions, y’know, the ones that make the language the butt of so many jokes.

Object prototypes are a very poor way to do object-oriented programming. Nobody outside of the JavaScript community does OOP in this manner, and for good reasons. Class-based OOP is the overwhelmingly preferred approach.

Even when ECMA TC39 added syntactic sugar for classes, the JavaScript community railed against it, insisting that prototypal inheritance was the way to go. Stubbornly stupid.

In general, novice JavaScript programmers will fall into the numerous traps that litter the language, including those that Douglas Crockford warns against. Do you really think all JavaScript programmers have read his book?

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store