FizzBuzz

  • Write a program in fizzbuzz.js that prints an array of integers from 1 to 100.
  • For multiples of 3, show "Fizz" instead of the number.
  • For multiples of 5, show "Buzz" instead of the number.
  • For multiples of 3 and 5, show "FizzBuzz" instead of the number.
  • Return an array containing the results based on the rules above.

Submit a pull request to the main branch with your solution. Do not modify the tests. Once you have created a PR with passing tests, then you have successfully completed the exercise.

Troubleshooting

If you cannot see any auto-grading workflows on the Actions page, learn how to fix it in this repo.