View demo • Report bug • Request feature • DM author
Hailed as a canonical live coding interview question, FizzBuzz is here, written in JavaScript!
Sample prompt:
Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" instead of the number and for the multiples of five print "Buzz". For numbers which are multiples of both three and five print "FizzBuzz" (source: CodingHorror)
For a live demo of the project on Replit, click here.
For a video clip demonstrating how the code works, click here.
- Clone the repository to your machine
git clone https://github.com/chriseborowski/fizz-buzz-challenge.git
- Run the code in your preferred code editor (e.g., VSCode) or Terminal/Bash window (sample code below)
node fizzbuzz.js
Edit or adjust the code according to your needs.
Distributed under the MIT License. See license.txt
for more information.
Chris Borowski
Follow me @chriseborowski on GitHub • Twitter • T2 • LinkedIn • Linktree (all links)
Project repository link: FizzBuzz coding challenge