Added min max

This commit is contained in:
2019-05-13 14:13:39 +02:00
parent 58eadbd939
commit 1a88dfa803

14
uebung3/min-max.html Normal file
View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<head>
<title>Min-Max</title>
</head>
<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>
</html>