We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b82600e commit dcf3d6fCopy full SHA for dcf3d6f
.gitignore
@@ -1,4 +1,5 @@
1
node_modules
2
.DS_Store
3
.vscode
4
+testing.js
5
**/.DS_Store
Sprint-1/1-key-exercises/4-random.js
@@ -1,7 +1,9 @@
-const minimum = 1;
-const maximum = 100;
+const minimum = 1000;
+const maximum = 9999;
-const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
+num = Math.floor(Math.random() * (maximum - minimum) + 1);
+
6
+console.log(num);
7
8
// In this exercise, you will need to work out what num represents?
9
// Try breaking down the expression and using documentation to explain what it means
0 commit comments