News for hackers. Stuff that matters.
Re:JavaScript: prototype vs. class by masklinn on Wednesday April 04, 2018 @11:23AM (#16755583)
> For a simple es2015 it looks a bit more complicated than the prototype extension [2].

That's because it provides somewhat different features and Babel apparently attempts to replicate them properly. For instance "class" methods are non-enumerable by default, whereas "prototype" methods — being bog-standard properties — are.

There are no comments on this comment yet.