Skip to content

Commit 5b08905

Browse files
section 1 is now complete and section 2 task 1 is complete
1 parent 06435e4 commit 5b08905

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,5 @@ 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+
11+
//Answer: Firstly a random number that is > or = to = 0 BUT less than 1 is generated, that number is multiplied a 100 and then always rounded down to the nearest whole number and then the minimum value of 1 is added

Sprint-1/2-mandatory-errors/0.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This is just an instruction for the first activity - but it is just for human consumption
2-
We don't want the computer to run these 2 lines - how can we solve this problem?
1+
//This is just an instruction for the first activity - but it is just for human consumption
2+
//We don't want the computer to run these 2 lines - how can we solve this problem?

0 commit comments

Comments
 (0)