title: Copying elements from 2D array into another one
body: <p>I've been trying to copy the elements from a multidimensional array into another one. My goal is to get the elements from the first array 'bikeBrands' and try to put them in the new array 'bikeBrands2' but 'bikeBrands2' keeps coming as undefined.</p>
  <pre><code>  const bikeBrands = [];
    bikeBrands[0] = ['Susuki', 'Kawasaki'];
    bikeBrands[1] = ['Honda', 'KTM'];
  
    const bikeBrands2 = [];
  
    for (var i = 0; i &lt; bikeBrands.lenght; i++)
      bikeBrands2[i] = bikeBrands[i].slice();
  
  
    console.log(bikeBrands2);
  </code></pre>