Skip to content

mariags803/fizzbuzz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code kata: FizzBuzz

Description

Having a number:

  • If the number is a multiple of 3, returns "fizz"
  • If the number is a multiple of 5, returns "buzz"
  • If the number is a multiple of 15, returns "fizzbuzz"

If none of the above conditions are met, return the number as a string.

Example

number = 1  // => '1'
number = 3  // => 'fizz'
number = 5  // => 'buzz'
number = 15 // => 'fizzbuzz'
number = 6  // => 'fizz'
number = 10 // => 'buzz'
number = 30 // => 'fizzbuzz'
number = 19 // => '19'

Run project

Install

npm install

Run test

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published