title: Javascript How to create object of multiple class at one time
body: <p>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</p>
  
  <p>This file is in A.js</p>
  
  <pre><code>module.exports= class A{
   constructor(url){
      this.url = url;
  
    }
  }
  </code></pre>
  
  <p>This file is in B.js</p>
  
  <pre><code>module.exports= class B{
   constructor(url){
      this.url = url;
  
    }
  }
  </code></pre>
  
  <p>need to create instance of class A and class B at same time calling from  different file ex: DE.js  and return that instance</p>