1.0.1 • Published 5 years ago

@stej/fizz-buzz v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Fizz-Buzz

Simple app to show that I know how to program

Requirements

  • given numbers 1 to 100
  • print out "Fizz" if the number is divisible by 3
  • print out "Buzz" if the number is divisible by 5
  • print out "Bang" if the number is divisible by 7
  • print out "Pop" if the number is divisible by 11
  • if a number is divisible by more than one of the above numbers then print out each corresponding word
  • otherewise simply print the number

Module install

yarn add @stej/fizz-buzz

Module Usage

const fizzbuzz = require("@stej/fizz-buzz");
console.log(fizzbuzz(11));