First let’s see the most common arguments JavaScript programmers state in defence of prototypal inheritance (I’m taking these arguments from the current pool.
But if you dont expect to have to read or write pre-ES6 code anytime soon, then just stick to the new stuff. Armed with this knowledge, you can become a true javascript master. I know that this answer is 3 years late but I really think the current answers do not provide enough information about how prototypal inheritance is better than classical inheritance. If you expect to be working on a pre-ES6 codebase, then obviously yes its worth learning. Like other books in the “You Don’t Know JS” series, this and Object Prototypes dives into trickier parts of the language that many javascript programmers simply avoid. prototypeis the object that is used to build proto when you create an object with new. You’ll learn how they work and why they’re integral to behavior delegation-a design pattern in which objects are linked, rather than cloned. short version proto is the actual object that is used in the lookup chain to resolve methods, etc. This concise, in-depth guide takes you inside javascript’s this structure and object prototypes. No matter how much experience you have with javascript, odds are you don’t fully understand the language. Название : You Don't Know JS: this & Object Prototypes