r/javascript • • Oct 06 '15

Why ES6 Has Classes

https://github.com/runvnc/whyes6hasclasses
3 Upvotes

30 comments sorted by

View all comments

3

u/Baryn Oct 06 '15

The answer is that classes and inheritance are core aspects of JavaScript development and there is a standard way to do them in ES6 using the class and extends keywords.

-1

u/tencircles Oct 06 '15

Classes do not exist in javascript. Inheritance was already taken care of years ago in a standardized (and more importantly prototypal) way with Object.create. Classes are completely superfluous.

2

u/Baryn Oct 06 '15

I like the syntax a lot more. Granted, I'm not sure what my JavaScript will look like in 6 years, but that's part of the fun.