Files
intecsync/uebung3/min-max.html
2019-05-13 14:21:52 +02:00

16 lines
323 B
HTML

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