---
title: "Discussion on \"Class Inheritance in JavaScript\" | Hashnode"
description: "Discussion on \"Class Inheritance in JavaScript\". //Inheritance from ourselves\nclass Thinker {\n    constructor(name, thought) {\n        this.name = name\n        this.thought = thought\n    }\n    display() {\n        console.log(this.name)\n    }\n}\n\nclass Doer extends Thinker {\n    constructor(name, tho..."
url: "https://hashnode.com/posts/class-inheritance-in-javascript/625146d875dccb6f3431d9c5"
---

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

Discussion

# [Class Inheritance in JavaScript](https://vasudhawankhade.hashnode.dev/class-inheritance-in-javascript?utm_source=hashnode&utm_medium=feed)

//Inheritance from ourselves class Thinker { constructor(name, thought) { this.name = name this.thought = thought } display() { console.log(this.name) } } class Doer extends Thinker { constructor(name, tho...

Apr 9, 2022 · 1 min read · vasudhawankhade.hashnode.dev  
Read the article

-   [#inheritance](https://hashnode.com/tag/inheritance)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#classes](https://hashnode.com/tag/classes)

## Written by

[Vasudha Wankhade](https://hashnode.com/@ElectriGirl)

@ElectriGirl

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

## Responses 1

Markdown supported · ⌘↵ to post

No responses yet.
