title: Sum of nested arrays according to their indexes
body: <p>If I have these corresponding array with 2 nested arrays (this may have 2 or more) inside:</p>
  
  <pre><code>const nums = [
      [4, 23, 20, 23, 6, 8, 4, 0],      // Each array consists of 8 items
      [7, 5, 2, 2, 0, 0, 0, 0] 
  ];
  </code></pre>
  
  <p>How can I perform addition with them in accordance to their indexes ?</p>
  
  <p>Expected Result:</p>
  
  <pre><code>// 11 is from 4 (array1 - index1) + 7 (array2 - index1)
  // and so on.
  [11, 28, 22, 25, 6, 8, 4, 0]
  </code></pre>
  
  <p>What I did was:</p>
  
  <pre><code>// This will work but it will only be applicable for 2 arrays as what if there will be 2 or more making it dynamic 
  
  const total = Array.from({ length: 8 }, (_, i) =&gt; nums[0][i] + nums[1][i]);
  </code></pre>