https://github.com/simplonco/js-fizzbuzz
1, 2, Fizz, 3, Buzz, Fizz
https://github.com/simplonco/js-fizzbuzz
challenge exercice javascript star
Last synced: 5 months ago
JSON representation
1, 2, Fizz, 3, Buzz, Fizz
- Host: GitHub
- URL: https://github.com/simplonco/js-fizzbuzz
- Owner: simplonco
- Created: 2016-04-21T07:22:54.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T13:28:30.000Z (over 3 years ago)
- Last Synced: 2023-04-15T20:58:46.811Z (about 3 years ago)
- Topics: challenge, exercice, javascript, star
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 1
- Watchers: 7
- Forks: 75
- Open Issues: 56
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FizzBuzz
* `Fork` the GitHub repository.
* `git add`, `git commit` and` git push` directly on your repository as much you want.
* Open an `Pull request`, you must get a green light on the Travis CI server to validate the exercise!
## Rules
* print `"fizz"` if the integer is a multiple of `3` (and not a multiple of `5`)
* print `"buzz"` if the integer is a multiple of `5` (and not a multiple of `3`)
* print `"fizzbuzz"` if the integer is a multiple of `3` and `5`
* print the `number` if the integer is not a multiple of `3` or `5`
## Examples
```javascript
fizzbuzz(2) => 2
fizzbuzz(5) => "buzz"
fizzbuzz(6) => "fizz"
fizzbuzz(11) => 11
fizzbuzz(30) => "fizzbuzz"
```
## GO, GO, GO!
May the force be with you :space_invader: !
## To go further..
Look at: (T.D.D.)