Skip to content

Commit 9cc5c5f

Browse files
committed
Check what the value " +1" represent in the code
1 parent 9aa96a7 commit 9cc5c5f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Sprint-1/1-key-exercises/4-random.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ const minimum = 1;
22
const maximum = 100;
33

44
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5+
//const num = Math.floor(Math.random() * (maximum - minimum)) + minimum;
56
console.log(num);
67

78
// In this exercise, you will need to work out what num represents?

0 commit comments

Comments
 (0)