<body>
<p>Math.min() returns the lowest value:<p>
<button onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
document.getElementById("demo").innerHTML =
Math.min(0, 150, 30, 20, -8, -200);
}
</script>
</body>
|
Math.min() returns the lowest value:
|