Get your own website Result Size: 625 x 565
x
 
<!DOCTYPE html>
<html>
<body>
<h1>JavaScript Operators</h1>
<h2>The ... Operator</h2>
<p>The Spread (...) operator can pass array arguments to functions:</p>
<p id="demo"></p>
<script>
const numbers = [23,55,21,87,56];
let minValue = Math.min(...numbers);
let maxValue = Math.max(...numbers);
document.getElementById("demo").innerHTML =
"The minimum value is: " + minValue + "<br>The maximum value is: " + maxValue; 
</script>
</body>
</html>