Update
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
|
||||
let arr = Array.from({length: 10}, () => Math.floor(Math.random() * 2));
|
||||
document.write(arr);
|
||||
document.write("Minimum: " + Math.min(arr));
|
||||
document.write("Maximum: " + Math.max(arr));
|
||||
document.write("Minimum: " + Math.min(...arr));
|
||||
document.write("Maximum: " + Math.max(...arr));
|
||||
</script>
|
||||
</body>
|
||||
|
||||
|
Reference in New Issue
Block a user