concat function in javascript?
<p>i want to pick highest value from an array so i use math.max function it is working well when i run this only with one array but as i have two different array to first of all i want to join them together so i use concat function but it is not working. </p>

<pre><code>&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;


&lt;script type="text/javascript"&gt;

var maX=[6,1]

var miN=[10,20]

alert(Math.max.apply(maX.concat(miN))


&lt;/script&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
