/node-fizzbuzz

Primary LanguageJavaScript

FizzBuzz

Rules

  • FizzBuzz accepts numbers from 1 to X as input
  • If the input number is divisible by 3, output 'Fizz'
  • If the input number is divisible by 5, output 'Buzz'
  • If the input number is divisible by 3 and 5, output 'FizzBuzz'
  • If the input number is divisible by neither 3 nor 5, output the number