title: Combining two arrays in JavaScript with for loop
body: <p>I would like to know if there is a smarter way to 
  1) declare the two arrays, especially the numbers one (possibly with the dot operator?), and 
  2) combine the string elements of these two arrays into a third without using an old fashioned for loop, perhaps with Array.map() or Array.from()?</p>
  
  <pre><code>const letters=['a', 'b', 'c', 'd']
  const numbers=[1, 2, 3, 4, 5, 6]
  
  const combined=[]
  
  for (let i=0; i &lt; letters.length; i++)
  {
      for (let j=0; j &lt; numbers.length; j++)
      {
          combined.push(letters[i] + numbers[j]);
      }
  }
  
  // output a1, a2, a3, a4, a5, a6, b1...
  </code></pre>