Retired

FizzBuzz (retired)

75f3r

Description:

In this exercise, you will have to create a function named fizzbuzz. This function will take on a single integer parameter and will return, depending on the value:

  • If a number is not a multiple of 3 or 5, return the number itself
  • If a number is a multiple of 3, it will return "fizz"
  • If a number is a multiple of 5, it will return "buzz"
  • If a number a multiple of both 3 and 5, it will return "fizzbuzz"

Ready?

  /\  /\__ _ _ __  _ __  _   _    ___ ___   __| (_)_ __   __ _ 
 / /_/ / _` | '_ \| '_ \| | | |  / __/ _ \ / _` | | '_ \ / _` |
/ __  / (_| | |_) | |_) | |_| | | (_| (_) | (_| | | | | | (_| |
\/ /_/ \__,_| .__/| .__/ \__, |  \___\___/ \__,_|_|_| |_|\__, |
            |_|   |_|    |___/                           |___/ 
Fundamentals

Stats:

CreatedNov 16, 2016
Warriors Trained127
Total Skips8
Total Code Submissions188
Total Times Completed75
JavaScript Completions75
Total Stars2
% of votes with a positive feedback rating62% of 38
Total "Very Satisfied" Votes20
Total "Somewhat Satisfied" Votes7
Total "Not Satisfied" Votes11
Total Rank Assessments33
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • f3r Avatar
Ad