title: How to create a dynamic 2D array in javascript
body: <p>Id like to know if theres a way to programmatically create this array in javascript. Id like to have it dynamic also.</p>
  
  <pre><code>var tblObj = {
      main1: {
          var2: var3,
          var3: var4
       },
       main2: {
          var5: var6
       }
  };
  </code></pre>
  
  <p>Thanks</p>