16 lines
314 B
HTML
16 lines
314 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<title>Min-Max</title>
|
|
</head>
|
|
<body>
|
|
<script>
|
|
|
|
let arr = Array.from({length: 10}, () => Math.floor(Math.random() * 1));
|
|
document.write(arr);
|
|
document.write("Minimum: " + arr.min());
|
|
document.write("Maximum: " + arr.max());
|
|
</script>
|
|
</body>
|
|
|
|
</html>
|