Skip to content

Latest commit

 

History

History
57 lines (47 loc) · 841 Bytes

README.md

File metadata and controls

57 lines (47 loc) · 841 Bytes

🥋⛩️ fizz-buzz-kata

Write a program that prints the numbers from 1 to 100, but if a number is a multiple of: * 3, print fizz instead of 3 * 5, print buzz instead of 5 * 3 and 5, print fizzbuzz

Sample output:

1
2
Fizz
4
Buzz
Fizz
7
8
Fizz
Buzz
11
Fizz
13
14
FizzBuzz
16
17
Fizz
19
Buzz
... etc up to 100

Install

Install all dependencies with:

  • npm i

Usage

Run the tests with:

  • npm run test:once => if you want ro run the tests only once
  • npm run test:watch => if you want ro keep test refreshing as you code

Directories:

|--src
   |---index.js
|--test
   |---index.test.js
|--package.json
|--README.md

This project was bootstrapped with kataclism.

Read the rest of the documentation here.