var arr = new Array(); arr[0] = 100; arr[1] = 0; arr[2] = 50; var min = Math.min.apply ( null, arr ),max = Math.max.apply ( null, arr );