FizzBuzz

a couple examples of our advanced FizzBuzz question in different programming languages

Question

Given a map of values like so:

{
  2: 'second',
  3: 'Fizz',
  5: 'Buzz',
  6: 'sixth'
}

create a function that loops 1 through 100 and prints the corresponding map value if the loop number is divisible by the key. If not divisible by any of them, print the number