---
title: "Discussion on \"JS Inheritance Simplified with ES6 classes\" | Hashnode"
description: "Discussion on \"JS Inheritance Simplified with ES6 classes\". Lets create a class , Staff :\nclass Staff {\n  constructor(empName, empId, dept, doj) {\n    this.empName = empName;\n    this.empId = empId;\n    this.dept = dept;\n    this.doj = doj;\n  }\n  //methods are added to the prototype property of the class\n  em..."
url: "https://hashnode.com/posts/js-inheritance-simplified-with-es6-classes/665f5cd707f283100d538cb1"
---

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

Discussion

# [JS Inheritance Simplified with ES6 classes](https://breakthecode.hashnode.dev/js-inheritance-simplified-with-es6-classes?utm_source=hashnode&utm_medium=feed)

Lets create a class , Staff : class Staff { constructor(empName, empId, dept, doj) { this.empName = empName; this.empId = empId; this.dept = dept; this.doj = doj; } //methods are added to the prototype property of the class em...

Jun 4, 2024 · 2 min read · breakthecode.hashnode.dev  
Read the article

-   [#inherit](https://hashnode.com/tag/inherit)
-   [#js-concepts](https://hashnode.com/tag/js-concepts)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#js](https://hashnode.com/tag/js)

## Written by

[Carolin James](https://hashnode.com/@BreakTheCode)

@BreakTheCode

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
