Before starting with prototypal inheritance let’s first understand what a prototype is. All the objects in JavaScript like Array, Boolean, Date etc all inherit properties and methods from their prototype. Object is the at top of the Prototype chain...
blog.yogeshchavan.dev5 min read
Nice writeup! ⭐
The prototypal inheritance model reminds me of the linked list data structure, where the prototype chain is like the links in a linked list. Actually, the scope chain seems to work similarly in JavaScript.
Maybe linked lists were one of Brendan Eich's favorite data structures 🤔
Dival Sehgal
Nicely explained !