项目作者: simplonco

项目描述 :
1, 2, Fizz, 3, Buzz, Fizz
高级语言: JavaScript
项目地址: git://github.com/simplonco/js-fizzbuzz.git
创建时间: 2016-04-21T07:22:54Z
项目社区:https://github.com/simplonco/js-fizzbuzz

开源协议:

下载


FizzBuzz

  • Fork the GitHub repository.
  • git add, git commit andgit push directly on your repository as much you want.
  • Open an Pull request, you must get a green light on the Travis CI server to validate the exercise!

Rules

  • print "fizz" if the integer is a multiple of 3 (and not a multiple of 5)
  • print "buzz" if the integer is a multiple of 5 (and not a multiple of 3)
  • print "fizzbuzz" if the integer is a multiple of 3 and 5
  • print the number if the integer is not a multiple of 3 or 5

Examples

  1. fizzbuzz(2) => 2
  2. fizzbuzz(5) => "buzz"
  3. fizzbuzz(6) => "fizz"
  4. fizzbuzz(11) => 11
  5. fizzbuzz(30) => "fizzbuzz"

GO, GO, GO!

May the force be with you :space_invader: !

To go further..

Look at: https://github.com/jasmine/jasmine (T.D.D.)