FizzBuzz
Expected Behaviour
The fizzBuzz
function should accept a single argument of the Number
type. When passed a number, it will return Fizz
if the number is a multiple of 3, Buzz
if the number is a multiple of 5, FizzBuzz
if the number is a multiple of 3 and 5, otherwise it should return the number.
Assertions
-
returns Fizz when passed a multiple of 3
-
returns Buzz when passed a multiple of 5
-
returns FizzBuzz when passed a multiple 3 and 5
-
returns the number when it isn't a multiple of 3 or 5