运行 ❯
获取您
自身
网站
×
更改方向
保存代码
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html> <body> <h1>JavaScript Math</h1> <h2>The Math.min() Method</h2> <p>Return the numbers with the lowest value:</p> <p id="demo"></p> <script> let a = Math.min(5, 10); let b = Math.min(0, 150, 30, 20, 38); let c = Math.min(-5, 10); let d = Math.min(-5, -10); let e = Math.min(1.5, 2.5); document.getElementById("demo").innerHTML = a + "<br>" + b + "<br>" + c + "<br>" + d + "<br>" + e; </script> </body> </html>