https://github.com/redradix/speed-dating-fizzbuzz
https://github.com/redradix/speed-dating-fizzbuzz
fizzbuzz kata
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/redradix/speed-dating-fizzbuzz
- Owner: redradix
- Created: 2020-01-20T08:45:50.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T05:19:50.000Z (over 2 years ago)
- Last Synced: 2023-02-27T21:27:23.059Z (over 2 years ago)
- Topics: fizzbuzz, kata
- Language: JavaScript
- Size: 565 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# adalab-speed-dating
The objetive as simple as writing a function that recives an integer `n` and return an array from `1` to `n` where:
- Multiples of 3 have been replaced with `Fizz`
- Multiples of 5 have been replaced with `Buzz`
- Multiples of both have been replaced with `FizzBuzz````
fizzBuzzToN(0) // => []fizzBuzzToN(5) // => [1,2,'Fizz', 4, 'Buzz']
fizzBuzzToN(15) // => [1,2,'Fizz', 4, 'Buzz', 'Fizz', 7, 8, 'Fizz', 'Buzz', 11, 'Fizz', 13, 14, 'FizzBuzz']
```