diff --git a/README.md b/README.md index f913f0e..6314de1 100644 --- a/README.md +++ b/README.md @@ -57,13 +57,13 @@ We already completed the FIZZBUZZ challenge. Now repeat the logic for the FIZZBU 1. Start with the following code: ```js -let fizzDivisor = Math.round(Math.random() * (10 - 1) + 1); -let buzzDivisor = Math.round(Math.random() * (10 - 1) + 1); -let n = Math.round(Math.random() * (1000 - 1) + 1); -let start = Math.round(Math.random() * (10 - 1) + 1); +let fizzDivisor = Math.round(Math.random() * (10 - 1) + 1); // creates a random number between 1 and 10 +let buzzDivisor = Math.round(Math.random() * (10 - 1) + 1); // creates a random number between 1 and 10 +let start = Math.round(Math.random() * (10 - 1) + 1); // creates a random number between 1 and 10 +let end = Math.round(Math.random() * (1000 - 100) + 100); // creates a random number between 100 and 1000 ``` -2. Re-implement exercise 2, but use `start` as the initial value for `i`, `n` as the range limit in `i <= n`, and `fizzDivisor` and `buzzDivisor` as the dependent values for determining "FIZZ" and "BUZZ" print messages. +2. Re-implement exercise 2, but use `start` as the initial value for `i`, `end` as the range limit in `i <= end`, and `fizzDivisor` and `buzzDivisor` as the dependent values for determining "FIZZ" and "BUZZ" print messages. ---