---
title: "Discussion on \"Inheritance in JS Simplified using objects\" | Hashnode"
description: "Discussion on \"Inheritance in JS Simplified using objects\". In this article we would see how we can implement inheritance through objects\nLets create a parent prototype object :\nconst staffProto = {\n  init(firstName, lastName) {\n    this.firstName = firstName;\n    this.lastName = lastName;\n  },\n  empDetails()..."
url: "https://hashnode.com/posts/inheritance-in-js-simplified-using-objects/6660ae7ef84bacbb5b56e487"
---

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

Discussion

# [Inheritance in JS Simplified using objects](https://breakthecode.hashnode.dev/inheritance-in-js-simplified-using-objects?utm_source=hashnode&utm_medium=feed)

In this article we would see how we can implement inheritance through objects Lets create a parent prototype object : const staffProto = { init(firstName, lastName) { this.firstName = firstName; this.lastName = lastName; }, empDetails()...

Jun 5, 2024 · 1 min read · breakthecode.hashnode.dev  
Read the article

-   [#js](https://hashnode.com/tag/js)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#javascriptprototypes](https://hashnode.com/tag/javascriptprototypes)
-   [#javascript-framework](https://hashnode.com/tag/javascript-framework)

## Written by

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

@BreakTheCode

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

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
