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
Similar Kata:
Stats:
Created | Nov 16, 2016 |
Warriors Trained | 127 |
Total Skips | 8 |
Total Code Submissions | 188 |
Total Times Completed | 75 |
JavaScript Completions | 75 |
Total Stars | 2 |
% of votes with a positive feedback rating | 62% of 38 |
Total "Very Satisfied" Votes | 20 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 11 |
Total Rank Assessments | 33 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |