Conditionals • Exercise 2/3

FizzBuzz

00:00
0
20 points

Instructions

Create a function fizzbuzz that takes a number and returns:

  • "FizzBuzz" if the number is divisible by both 3 and 5
  • "Fizz" if the number is divisible by 3
  • "Buzz" if the number is divisible by 5
  • The number as a string otherwise

Your Code

Results

Click "Run Tests" to see results