Skip to content

egeorgel/FizzBuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fizz Buzz Kata

Version 1

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"

Version 2

Change the program so that for numbers which are multiples of both three and five print "FizzBuzz"

Version 3

Change the program so that I can define the rule at Runtime for which multiple will stand for "Fizz" (not necessarily 3) and which multiple stands for "Buzz" (not necessarily 5). If no rule is provided at Runtime, it should work like v2, with the (3 ; 5) configuration.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisities

You need Node and npm.

Open the Terminal app and type :

 brew update

This updates Homebrew with a list of the latest version of Node.

Then

brew install node

To install Node and npm

You have to make sure that you have the last version of Node, run :

brew update
brew upgrade node

The node version is 6.2.2 and above

Installing

Download the repo then run

npm install

To install all dependencies

Running the tests

To run the tests use the following commande :

npm test

Running the program

To run the program use the following commande :

npm start

Built With

  • Coda
  • Node ES6
  • macOS sierra

Contributing

feel free to fork and improve the code.

Authors

  • Edgar Georgel - Initial work - FizzBuzz

About

FizzBuzz kata

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors