Find why highestTemperature returns NaN for an ordinary numeric array.
JavaScript
function highestTemperature(readings) {
return Math.max(readings);
}
console.log(highestTemperature([18.5, 21, 19.25]));
function highestTemperature(readings) {
return Math.max(readings);
}
console.log(highestTemperature([18.5, 21, 19.25]));