/Fizzbuzz

Primary LanguageJavaScriptMIT LicenseMIT

Fizzbuzz

Open in GitHub Codespaces

To start the test runner, open the terminal and run

npm test

Or simply launch the "Test Runner" launch config

FizzBuzz is a game where you enumerate all the numbers from 1 to 100:

  1. The function returns
  2. the function returns an array
  3. the length of the array is 100
  4. the first number is 1
  5. the second number is 2
  6. the third number is Fizz
  7. the fifth number is Buzz
  8. the 11th number is 11
  9. the 15th number is FizzBuzz
  10. If the number is multiple of 3 you say Fizz
  11. If the number is a multiple of 5 you say Buzz
  12. If the number of is a multiple of 3 and 5 you say FizzBuzz

Extension 1

  • If the number contains 3 you say Fizz
  • If the number contains 5 you say Buzz
  • If the number contains 3 and is a multiple of 3 you say FizzFizz
  • For 35 you say FizzBuzzBuzz

Extension 2

  • For 7 you say Fuzz
  • For 11 you say Bizz