AitorAlejandro
7/23/2015 - 2:59 PM

Minimo y maximo de un array

Minimo y maximo de un array

var  numeros = [5, 458 , 120 , -215 , 228 , 400 , 122205, -85411]; 
var maxInNumeros = Math.max.apply(Math, numeros); 
var minInNumeros = Math.min.apply(Math, numeros);