5 ms·
Feels like yesterday I was told Object.create was the new best way to do this.
by raziel2p 12y ago
Feels like yesterday I was told Object.create was the new best way to do this.
- jsnoble 12y agoThe 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