array conversion in javascript : <p>I am new to JavaScript. </p>

<p>I have the following 1-d arrays:</p>

<pre><code>    m=[1,2,3,4]
    n=[5,6,7,8]
</code></pre>

<p>I want to convert the following in JavaScript:</p>

<pre><code>    x=[[1,5], [2,6], [3,7], [4,8]]
</code></pre>

<p>How can I do this?</p>

<p>Thanks for your help in advance.</p>

<p>I am new to java-script</p>
