Skip to content

Commit 4de84eb

Browse files
committed
answered question 4 in key exercises
1 parent 4431ccd commit 4de84eb

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@ const maximum = 100;
33

44
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
55

6-
// In this exercise, you will need to work out what num represents?
7-
// Try breaking down the expression and using documentation to explain what it means
8-
// It will help to think about the order in which expressions are evaluated
9-
// Try logging the value of num and running the program several times to build an idea of what the program is doing
6+
// num generates a random number between 1 and 100

0 commit comments

Comments
 (0)