Skip to content

Commit eddb7aa

Browse files
authored
Explained what num variable would stand for in this example.
1 parent deb7eef commit eddb7aa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

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

44
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5+
//num can be any generated random number between 1 and 100, rounded down.
6+
7+
8+
9+
510

611
// In this exercise, you will need to work out what num represents?
712
// Try breaking down the expression and using documentation to explain what it means

0 commit comments

Comments
 (0)