https://github.com/m-thompson-code/fizz-buzz
https://github.com/m-thompson-code/fizz-buzz
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/m-thompson-code/fizz-buzz
- Owner: m-thompson-code
- Created: 2022-01-23T22:39:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-04-11T18:09:19.000Z (about 3 years ago)
- Last Synced: 2025-08-31T00:41:34.360Z (10 months ago)
- Language: TypeScript
- Size: 743 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# FizzBuzz Demo and Solution
[Interactive Demo](https://m-thompson-code.github.io/fizz-buzz/)
Check out my [dev.to post](https://dev.to/mthompsoncode/solving-fizzbuzz-challenge-in-under-150-lines-of-code-341c) to why interviewers still use FizzBuzz.
## FizzBuzz
FizzBuzz is a well-known, simple coding assignment that is commonly used as an entry, technical whiteboard exercise in interviews.
Exercise: Write a function that takes an ordered Array of numbers: 1 through 100 and outputs an Array where each value is based on the input Array:
[Check out my suggested solution](https://github.com/m-thompson-code/fizz-buzz/blob/main/src/fizz-buzz/fizz-buzz.ts)
[Look at the tests](https://github.com/m-thompson-code/fizz-buzz/blob/main/src/fizz-buzz/fizz-buzz.spec.ts)