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.
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
var maX=[6,1]
var miN=[10,20]
alert(Math.max.apply(maX.concat(miN))
</script>
</head>
<body>
</body>
</html>