cvince / fizzbuzz-playground

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

License:Apache License 2.0


Languages

Language:JavaScript 100.0%