Skip to content

Commit e3fd82b

Browse files
complete random number exercise
1 parent ec8b86e commit e3fd82b

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(Math.floor(Math.random() * (maximum - minimum + 1))+ minimum);
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)