<script type="text/javascript"> alert(Math.max(1,5,3)); alert(Math.max.apply(null,[1,5,3])); </script>