title: How do I run every exported function
body: <p>So i have this mess of a js file</p>
  <pre><code>cardPool = []
  
  class Card {
      constructor(name = &quot;&quot;, portrait = &quot;&quot;, bloodCost = 0, boneCost = 0, power = 0, health = 1, sigilList = [&quot;No sigil&quot;]) {
          this.name = name
          this.portrait = portrait;
          this.bloodCost = bloodCost;
          this.boneCost = boneCost;
          this.power = power;
          this.health = health;
          this.sigilList = sigilList;
          cardPool.push(this)
      }
  
      Damage(dmg = 1) {
          this.health -= dmg
      }
  }
  
  blank = new Card(&quot;blank&quot;, &quot;&quot;);
  income = new Card(&quot;income&quot;, &quot;⬇️&quot;);
  
  module.exports = {
      Card,
  
      blank,
      income,
  
      bear: function () { new Card(&quot;Grizzly&quot;, &quot;&quot;, 3, 0, 4, 6) },
      wolf: function () { new Card(&quot;Wolf&quot;, &quot;&quot;, 2, 0, 3, 2) },
  
      cardPool,
  };
  
  </code></pre>
  <p>All I want to do is on start up it run all of the function being exported. There more function that I export but here only a few so stack overflow won't scream at me. This is for a game that I'm making to be able to handle multiple instance of the same card. You can read about why I make new card using function here: <a href="https://stackoverflow.com/questions/70228044/how-to-change-a-local-class-varible-node-js">How to change a local class varible node js</a> . And I need a card pool so that I can do stuff in another file here my other question: <a href="https://stackoverflow.com/questions/70480658/how-can-i-put-an-object-inside-a-list-on-initialization">How can i put an object inside a list on Initialization</a>. Now I need on startup put all the card that I make in the module.export in the cardPool.</p>