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