https://github.com/sfinx13/fizzbuzz
TDD Workshop - FizzBuzz
https://github.com/sfinx13/fizzbuzz
fizzbuzz javascript jest-tests
Last synced: 9 months ago
JSON representation
TDD Workshop - FizzBuzz
- Host: GitHub
- URL: https://github.com/sfinx13/fizzbuzz
- Owner: sfinx13
- Created: 2018-12-21T16:51:03.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-14T15:13:24.000Z (about 4 years ago)
- Last Synced: 2023-03-05T04:47:51.937Z (over 3 years ago)
- Topics: fizzbuzz, javascript, jest-tests
- Language: JavaScript
- Homepage:
- Size: 237 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FizzBuzz
Write a function that returns for a number between 1 to 100 :
- Returns an exception if number is not 1 and 100 inclusive
- "Fizz" instead of the number if multiple of 3
- "Buzz" instead of the number if multiple of 5
- "FizzBuzz" instead of the number so multiple of 3 and 5
- Returns the number
# Prerequisites
* Install Nodejs + NPM : https://nodejs.org/en/
* Install Framework Jest : https://jestjs.io/en/
# Running from command line with npm
```
npm test
```