Skip to content

FizzBuzz test using JavaScript, Python, CoffeeScript, Ruby, Haskell, and Elixir.

License

Notifications You must be signed in to change notification settings

aregowe/Fizz-Buzz

Repository files navigation

Fizz-Buzz

Return an array containing the numbers from 1 to N, where N is the parametered value. N will never be less than 1.

Replace certain values however if any of the following conditions are met:

If the value is a multiple of 3: use the value 'Fizz' instead
If the value is a multiple of 5: use the value 'Buzz' instead
If the value is a multiple of 3 & 5: use the value 'FizzBuzz' instead