找出最高温度函数里的 bug

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

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

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

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