/fizzbuzz-playground

Primary LanguageJavaScriptApache License 2.0Apache-2.0

fizzbuzz-playground

FizzBuzz.js

Fizzbuzz takes one argument: Put in max number, and number%3 returns Fizz, and number%5 returns Buzz between 1 and max number.

FizzBuzzExt.js

Extended fizzbuzz function to scale. Same functionality as FizzBuzz.js, but takes two arguemtnts. First argument is the max number. Second argument is the reference object based off a set of key:value pairs that establish the number%'key', which turns the 'value'

fizzBuzzExt(maximum number, reference object)