@stej/fizz-buzz

1.0.1 • Public • Published

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));

Readme

Keywords

none

Package Sidebar

Install

npm i @stej/fizz-buzz

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

2.16 kB

Total Files

4

Last publish

Collaborators

  • stej