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);