// 代码测试
var array = [2,4,5,6,7,9,10,15];
var min = array[0];
for(var i = 1; i < arrs.length; i++) {
if(arrs[i] < min) {
min = arrs[i];
}
}
var max = array[0];
for(var i = 1; i < arrs.length; i++) {
if(arrs[i] > max) {
max = arrs[i];
}
}
console.log(max);//15