This is a repo that houses multiple implementations of the age old interview question FizzBuzz. The idea is to take a relatively simple problem with an extremely testable output and try to apply new, crazy, innovative or just weird solutions to it. This is a playground to try out that new technique, pattern or library and share code and solutions with other engineers.
- Every implementation is in its own module.
- An implementation module must export a function with an arity of 0
- The exported function must return an array
For all integers between 1 and 100 inclusive, when the integer is divisible by 3, print 'Fizz'. When the interger is divisible by 5, print 'Buzz'. When the integer is divisible by both 3 and 5, print 'FizzBuzz'. When none of the previous statements are true, print an empty line.
- Print: push to the return array
- empty line: an empty string "printed" (ie. pushed to the return array)
- Create a new folder with named after a key aspect of your implementation
- Have an
index.jsfile that exports a function with arity of 0 and returns your solution array. - In
./fizzbuzz.test.jsadd your implemenation according to the example below:
const canonical = require('./canonical');
buildSuite('Canonical', canonical);Reach out to @paul.nelson or to the #frontend-cop channel on slack.