Skip to content

Commit 5a27b07

Browse files
committed
logged output of num to console + ran prog severally to generate random numbers
1 parent e262356 commit 5a27b07

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
@@ -7,3 +7,4 @@ const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
77
// Try breaking down the expression and using documentation to explain what it means
88
// It will help to think about the order in which expressions are evaluated
99
// Try logging the value of num and running the program several times to build an idea of what the program is doing
10+
console.log(num); // outputs a random integer between 1 and 100 (inclusive)

0 commit comments

Comments
 (0)