Skip to content

sfinx13/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FizzBuzz

Write a function that returns for a number between 1 to 100 :

  • Returns an exception if number is not 1 and 100 inclusive
  • "Fizz" instead of the number if multiple of 3
  • "Buzz" instead of the number if multiple of 5
  • "FizzBuzz" instead of the number so multiple of 3 and 5
  • Returns the number

Prerequisites

Running from command line with npm

npm test

Releases

No releases published

Packages

No packages published