---
title: "#inherit articles | Hashnode"
description: "Explore 1 articles tagged #inherit on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/inherit"
---

Tag

# #inherit

1 posts · 0 followers

[Carolin James](https://hashnode.com/@BreakTheCode) · [Jun 4, 2024](https://hashnode.com/posts/js-inheritance-simplified-with-es6-classes/665f5cd707f283100d538cb1)

### [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...

2 min read · [breakthecode.hashnode.dev](https://breakthecode.hashnode.dev/js-inheritance-simplified-with-es6-classes?utm_source=hashnode&utm_medium=feed)
