---
title: "Discussion on \"JavaScript Inheritance Prototype Vs Class\" | Hashnode"
description: "Discussion on \"JavaScript Inheritance Prototype Vs Class\". Before ES6 JavaScript doesn't support class like OOPs but we can code class and inheritance using \"Prototype\". \nToday we are going do some code to implement inheritance using both prototype(ES5) and class(ES6).\n\nThe prototype is an object that is ass..."
url: "https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c"
---

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

Discussion

# [JavaScript Inheritance Prototype Vs Class](https://biplab.hashnode.dev/javascript-inheritance-prototype-vs-class?utm_source=hashnode&utm_medium=feed)

Before ES6 JavaScript doesn't support class like OOPs but we can code class and inheritance using "Prototype". Today we are going do some code to implement inheritance using both prototype(ES5) and class(ES6). The prototype is an object that is ass...

Oct 31, 2019 · biplab.hashnode.dev  
Read the article

-   [#es6](https://hashnode.com/tag/es6)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#til](https://hashnode.com/tag/til)

## Written by

[Biplab Malakar](https://hashnode.com/@BIPLAB)

@BIPLAB · Agartala, Tripura

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

Senior Software Engineer, JavaScript Developer, MEAN Developer, Node.js Developer, MERN Developer, Hybrid Mobile App Developer and ML Develo

I like to solve problems using JavaScript.

## Responses 2

Markdown supported · ⌘↵ to post

[Mike Schinkel](https://hashnode.com/@mikeschinkel)

[Nov 15, 2019](https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c/comment/5dced5772bd452a26a2165bd)

Nice article!

For this backend developer who does not do much Javascript in the browser, how viable is using ES6 on the open web today? What percent of browser can use it? And what happens when a user's browser does not support ES6; is there a polyfill? Is polyfill even possible?

Thanks in advance.

[Biplab Malakar](https://hashnode.com/@BIPLAB)

[Nov 15, 2019](https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c/comment/5dced5772bd452a26a2165bd#reply-5dced8a22bd452a26a2165c5)

Yes, you can use Webpack or Gulp.js or Babeljs for convert your ES6 code to ES5 code. [medium.com/@zural143/basic-webpack-4-and-es5-to-e…](https://medium.com/@zural143/basic-webpack-4-and-es5-to-es6-transpiler-using-babel-dc66e72c86c6)

[sitepoint.com/es6-babel-webpack](https://www.sitepoint.com/es6-babel-webpack/)

[Mike Schinkel](https://hashnode.com/@mikeschinkel)

[Nov 15, 2019](https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c/comment/5dced5772bd452a26a2165bd#reply-5dcedae02bd452a26a2165c9)

[Biplab Malakar](https://hashnode.com/@BIPLAB) Thanks.

So you can only use it if you incorporate a build process. Okay.

\-Mike

[Biplab Malakar](https://hashnode.com/@BIPLAB)

[Nov 15, 2019](https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c/comment/5dced5772bd452a26a2165bd#reply-5dceea398e84d69d6afc747d)

[Mike Schinkel](https://hashnode.com/@mikeschinkel)

Yes, If its frontend

[Hashnode](https://hashnode.com/@hashnode)

[Oct 31, 2019](https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c/comment/5dbb1d30aaa616c464d617fd)

[Biplab Malakar](https://hashnode.com/@BIPLAB) Thanks for writing this piece. Could you please remove the tag #ShowHashnode from the post?

#ShowHashnode is to share your open source repository, personal websites, pet projects, cool libraries, etc. that you've made with the Hashnode community.

[Biplab Malakar](https://hashnode.com/@BIPLAB)

[Oct 31, 2019](https://hashnode.com/posts/javascript-inheritance-prototype-vs-class/5dbb1ab820c89dc564f8f56c/comment/5dbb1d30aaa616c464d617fd#reply-5dbb1e4b20c89dc564f8f584)

Sure
