You Don't Know JS: this & object prototypes

Here is the GitHub repository for You Don’t Know JS: this & object prototypes.

I’ve only read through chapter 5, “Prototypes,” and was impressed by how clear the explanations were for what is supposed to be rather tricky subject matter. I’m getting a copy of the book to read on my Kindle.

The short version of chapter 5 is that the traditional class/object paradigm doesn’t exist in JavaScript. There has been a tendency for programmers to try to fake the class/object relationship, leading to confusion. Instead of classes and objects, there are prototypes. Prototypes and objects are linked in a chain. Understanding this behavior (instead of ignoring it or attempting to override it) is key to getting the most out of the language.