I have a low temperature array in javascript and I need to get the lowest temp so I used the math.min function. The first time though the low temp is returned and then after that I get NaN.
var lowTempArray = [];
var lowest = Math.min(lowTempArray);
message += '<tr><td colspan="3"class="alt">The lowest temperature of ' + lowest.toFixed(2) + ' occurred on ' + ((date.getMonth() + 1) + '/' + (date.getDate()) + '/' + date.getFullYear()) + '.' + '</td></tr>';