3 ms·
ES6 classes are just syntactic sugar for constructor/prototypes like we write them today. You can mutate them as much as you like.
by Touche 12y ago
ES6 classes are just syntactic sugar for constructor/prototypes like we write them today. You can mutate them as much as you like.
- greggman 12y agonot in SoundScript they aren't
- UberMouse 12y agoPretty sure they still are syntactic sugar for prototypes, just like in ES6. But SoundScript enforces that you cannot modify prototypes. There's not really a problem with that, it's doing it for speed. So it's not for your average Javascript app where performance doesn't matter as much.