Hacker News new | ask | show | jobs
by raziel2p 4133 days ago
Feels like yesterday I was told Object.create was the new best way to do this.
1 comments

The class in ES6 is just syntactic sugar over Object.create. Class is only coming out becuase most people wont learn that javascript has prototypal inheritance, and how to use it. Its a different mental model, in my opinion prototypal inheritance is more expressive and light weight than typical classes from other languages