Can somebody please explain the meaning of the following valid ES6 code?
'use strict';
class first {
constructor() {
}
}
class second {
constructor() {
}
}
class third extends (first, second) {
constructor() {
super();
}
}
As far as I know, there is no multiple inheritance in JavaScript, but the syntax shown in the example doesn't throw any error (in Node.js 4.3.0), and it works,... - how is what I'm trying to understand, or what does it do there exactly...
Also, I noticed that if I comments out super() call, then the code starts throwing error ReferenceError: this is not defined.