Green
Should say number when it is 1
Green
Should say Fizz when it is multiple of 3
Green
Refactor: IIFE to provide private scope. Fizz's factor and Fizz's result are now defined as private variables
Should say Buzz when it is multiple of 5
Green
Refactor: removing duplicate code by adding isDivisibleBy function
Should say FizzBuzz when it is multiple of 3 and 5
Green
Refactor: removing duplicate code concatenating the output
Refactor: adding rules -> DivisibleByRule
Refactor: adding rules -> DefaultNumberRule
Refactor: changing 'for' loop with reduce function
Refactor: module pattern -> preparing to split logic in different files
Refactor: splitting in different files
New requirement: should say Fizz when it contains 3
Green
Refactor: extracting 'contains' function