Using JavaScript's built-in Math object, you can easily retrieve the min and max integer values in an array.

var arr = [1, 7, 2, 10, 24, 3];  
var min = Math.min.apply(Math, arr); // 1  
var max = Math.max.apply(Math, arr); // 24