7 kyu
Caffeine Script
3,486 of 9,788mcclaskc
Description:
Complete the function which takes a non-zero integer as its argument.
If the integer is divisible by 3, return the string "Java"
.
If the integer is divisible by 3 and divisible by 4, return the string "Coffee"
If one of the condition above is true and the integer is even, add "Script"
to the end of the string.
If none of the condition is true, return the string "mocha_missing!"
Examples
1 --> "mocha_missing!"
3 --> "Java"
6 --> "JavaScript"
12 --> "CoffeeScript"
Fundamentals
Strings
Similar Kata:
Stats:
Created | Oct 7, 2014 |
Published | Oct 7, 2014 |
Warriors Trained | 15793 |
Total Skips | 2250 |
Total Code Submissions | 43911 |
Total Times Completed | 9788 |
JavaScript Completions | 3486 |
CoffeeScript Completions | 295 |
Java Completions | 3006 |
Python Completions | 2631 |
Haskell Completions | 372 |
Ruby Completions | 781 |
C# Completions | 244 |
Total Stars | 116 |
% of votes with a positive feedback rating | 84% of 856 |
Total "Very Satisfied" Votes | 627 |
Total "Somewhat Satisfied" Votes | 180 |
Total "Not Satisfied" Votes | 49 |