Spot the bug in highestTemperature

from Math object
Node 24 beginner 4 min 1 issue to find

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]));
Open in playground
Report an error