Skip to content

Commit 8c004f3

Browse files
defined what num represent
1 parent 5d661c5 commit 8c004f3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

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

44
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5+
console.log(num)
6+
7+
//In this exercise num is a variable that stores a random integer between 1 and 100.
58

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

0 commit comments

Comments
 (0)