complex JavaScript object : <p>I have 3 Javascript arrays:</p>

<pre><code>array1 = ["data", "data1", "data2"]
array2 = ["data", "data1", "data2"]
array3 = ["data", "data1", "data2"]
</code></pre>

<p>How can I combine them all, so that I can simply run a single loop and retrieve values from them.</p>

<pre><code>for (let index = 0; index &lt; mainArray.length; index++) { 

    value1 = mainArray.array1[index];
    value2 = mainArray.array2[index];
    value3 = mainArray.array3[index];   
}
</code></pre>

<p>How can I create a the <code>mainArray</code> to accommodate all three javascript arrays, can a complex object or json object be created?</p>
