I am new to Javascript ES6 class, i want to create object of multiple class at one time. does it is possible. below is my example
This file is in A.js
module.exports= class A{
constructor(url){
this.url = url;
}
}
This file is in B.js
module.exports= class B{
constructor(url){
this.url = url;
}
}
need to create instance of class A and class B at same time calling from different file ex: DE.js and return that instance