Update
This commit is contained in:
1 parent
dd65f3679c
commit
2e677f94af
1 file changed
+3
-3
@@ -5,10 +5,10 @@
|
||||
<body>
|
||||
<script>
|
||||
|
||||
let arr = Array.from({length: 10}, () => Math.floor(Math.random() * 1));
|
||||
let arr = Array.from({length: 10}, () => Math.floor(Math.random() * 2));
|
||||
document.write(arr);
|
||||
document.write("Minimum: " + arr.min());
|
||||
document.write("Maximum: " + arr.max());
|
||||
document.write("Minimum: " + Math.min(arr));
|
||||
document.write("Maximum: " + Math.max(arr));
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in new issue
Block a user