Skip to content

Commit ce7a6d0

Browse files
add num answer
1 parent c861b14 commit ce7a6d0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,7 @@ console.log(num);
2020
//num is rounded down to the nearset whole number using the method Math.floor restult eg 39.48605 => 39
2121

2222
// Last operation is to add the "minimum" (in this case it's 1 or it can be changed to any changed number e.g 10) this will shift the random number so it starts counting from minimum, instead of from zero.
23-
//eg . num was 39 => 40
23+
// eg . num was 39 => 40
24+
//num is a random whole number from 1 to 100.
25+
26+

0 commit comments

Comments
 (0)