ES6 Classes
class Foo {
constructor() { ... }
method() { ... }
}
Old
var Foo = function () { // constructor };
Foo.prototype.method = function () { ... };
class Foo {
constructor() { ... }
method() { ... }
}
var Foo = function () { // constructor };
Foo.prototype.method = function () { ... };