Makers Academy - Week 5 Pair Programming Side Project
Outline | Task | Installation Instructions | User Stories | Objects & Methods | Feature Tests |
As a side project in this weeks pair programming exercises, we've been asked to write FizzBuzz in JavaScript.
As my cohort at Makers transitions from learning Ruby to JavaScript, we're been tasked with building many of the projects we've previously built with Ruby in JavaScript.
Clone the repository from github then change directory into it.
$ git clone [email protected]:BenSheridanEdwards/Makers_FizzBuzz_JavaScript.git
$ cd Makers_FizzBuzz_JavaScript
To run the tests, please download Jasmine, you can download the standalone from here, or if you've using a mac with homebrew installed :
brew install jasmine
As a user,
So that I can play FizzBuzz,
I'd like to be able to pass a number to the FizzBuzz function.
As a user,
When I pass a multiple of 3 to FizzBuzz,
I'd like to receive Fizz.
As a user,
When I pass a multiple of 5 to FizzBuzz,
I'd like to receive Buzz.
As a user,
When I pass a multiple of 3 and 5 to FizzBuzz,
I'd like to receive FizzBuzz.
Methods | Description |
---|---|
.play(number) | Returns either Fizz, Buzz, FizzBuzz, or a given number depending on if the number is a multiple of 3, 5, or 3 and 5 respectively. |