Operation
class creates an array like this, which has no class name before the array.
[operInputQuery[0].value, operInputQuery[1].value, operInputQuery[2].value]
'Table' class is purposed to be an unnamed class inheriting Operation
's constructors.
It inherits properly, however, it creates the array with the unnecessary tag extends
like this.
extends[operInputQuery[0].value, operInputQuery[1].value, operInputQuery[2].value, operInputQuery[3].value]
Yes, I do not want to create the array with 'extends' thing.
How can I make an unnamed extended class?
let Operation = class { //unamed class
constructor(a, b, c) {
this.a = operInputQuery[0].value;
this.b = operInputQuery[1].value;
this.c = operInputQuery[2].value;
}
}
let Table = class extends Operation { //purposed to write an unnmaed extended class
constructor(a, b, c, d){
super(a, b, c);
this.a;
this.b;
this.c;
this.d = operInputQuery[3].value;
}
};