<html><body><h1>JavaScript 数组</h1><h2>findLast() 方法</h2><p id="demo"></p><script>const temp = [27, 28, 30, 40, 42, 35, 30];let high = temp.findLast(x => x > 40);document.getElementById("demo").innerHTML = "最后一个超过 40 度的温度是 " + high;</script></body></html>