Skip to content

Commit 3630054

Browse files
authored
Add console log for random number generation
Log the randomly generated number to the console.
1 parent 7be66ff commit 3630054

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

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

44
const num = Math.floor(Math.random() * (maximum - minimum + 1)) + minimum;
5-
5+
console.log (num);
66
// In this exercise, you will need to work out what num represents?
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

0 commit comments

Comments
 (0)