JS menggabungkan kelas, agak ...
function newclasses(...classes) {
class end {
constructor() {
classes.forEach((value) => {
this[value.name] = new value();
});
}
}
return end;
}
Goldenegg000