-
Create Input/ Output chart
-
Set-up repo on github and clone
-
Set-up project files Jasmine, README.md
-
Follow the RED, GREEN, REFACTOR TTD process
-
Create a failing test
-
Pass the test in the simplist possible way
-
Refactor if necessary
-
Finish and reflect
-
Update README
Input | Output |
---|---|
1 | 1 |
2 | 2 |
3 | Fizz |
4 | 4 |
5 | Buzz |
6 | Fizz |
10 | Buzz |
15 | FizzBuzz |
Clone this repo and navigate to it in your terminal
To print out FizzBuzz 1 to 100...
type 'open SpecRunner.hml' (see all tests passing, beautifull!)
open the Chrome dev tools console with 'option' + '⌘ / command' + 'J'
copy paste the code below and press 'enter'
javabuzz = new JavaBuzz();
for (var i = 1; i <= 100; i++) {
console.log(javabuzz.game(i));
}
Given more time with this project I will
- [] Get a lint roller over this code
- [] Refactor this code
- Make a beatuful README with proper markdown formatting
- [] Code a fuction that prints FizzBuzz from 1 to x (argument given)