Skip to content

Commit c05aa85

Browse files
committed
Complete random number exercise
1 parent 52f3451 commit c05aa85

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +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);
56

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

0 commit comments

Comments
 (0)