---
title: "Discussion on \"How Prototypal Inheritance works in JavaScript\" | Hashnode"
description: "Discussion on \"How Prototypal Inheritance works in JavaScript\". And how to convert it to class based inheritance"
url: "https://hashnode.com/posts/how-prototypal-inheritance-works-in-javascript/605040c0825b051f2b9dc991"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How Prototypal Inheritance works in JavaScript](https://blog.yogeshchavan.dev/how-prototypal-inheritance-works-in-javascript?utm_source=hashnode&utm_medium=feed)

And how to convert it to class based inheritance

Mar 16, 2021 · 5 min read · blog.yogeshchavan.dev  
Updated May 12, 2021  
Read the article

-   [#javascript](https://hashnode.com/tag/javascript)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#codenewbies](https://hashnode.com/tag/codenewbies)

## Written by

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

@myogeshchavan97 · India

  
[View profile](https://hashnode.com/@myogeshchavan97)

Full Stack Developer | Freelancer | JavaScript | React | Nodejs. https://yogeshchavan.dev/. Book 1:1 @ hiretheauthor.com/myogeshchavan97

Full Stack Developer | Freelancer | JavaScript | React | Nodejs. Loves sharing knowledge through technical articles. Dev.to: https://dev.to/myogeshchavan97 https://linktr.ee/myogeshchavan97

## Responses 2

Markdown supported · ⌘↵ to post

[Dival Sehgal](https://hashnode.com/@Dival)

[Apr 26, 2022](https://hashnode.com/posts/how-prototypal-inheritance-works-in-javascript/605040c0825b051f2b9dc991/comment/6267feb53033e09ae73ec267)

Nicely explained !

[Dave VanderWeele](https://hashnode.com/@dvanderweele)

[Mar 17, 2021](https://hashnode.com/posts/how-prototypal-inheritance-works-in-javascript/605040c0825b051f2b9dc991/comment/6051fecb1a853d0178f203e2)

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 🤔

[Yogesh Chavan](https://hashnode.com/@myogeshchavan97)

[Mar 18, 2021](https://hashnode.com/posts/how-prototypal-inheritance-works-in-javascript/605040c0825b051f2b9dc991/comment/6051fecb1a853d0178f203e2#reply-6052e68cf2014e029d59079a)

Thanks [Dave VanderWeele](https://hashnode.com/@dvanderweele). I really like your view of Linked list and inheritance 🙂
