Get the lowest value in an array:
var points = [40, 100, 1, 5, 25, 10]; console.log(points);/* ww w . j a v a 2s.co m*/ points.sort(function(a, b){return a-b}); console.log(points[0]);