class
is just a friendlier syntax for older constructor function patterns.
i.e.:
const x = function () {};
const y = new x();
Is the same as:
class x {
constructor () {}
}
const y = new x();
y.prototype
refers to the constructor method of the x
class.