找出最高温度函数里的bug

来自Math对象
Node 24 入门 4分钟 找出1处问题

找出highestTemperature为普通数值数组返回NaN的原因。

JavaScript
function highestTemperature(readings) {
  return Math.max(readings);
}

console.log(highestTemperature([18.5, 21, 19.25]));
在试验场中打开
报告错误