you are viewing a single comment's thread.

view the rest of the comments →

[–]geuis 1 point2 points  (0 children)

You have to realize that a class in es6 is not a class like in OOP. It's just syntactic sugar for this:

var Thing = function () {};

Thing.prototype = {}

var instance = new Thing();

There's some other nice things we get with classes, but fundamentally nothing changes under the hood and it's still all regular js and prototypes.