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

Stats:

CreatedOct 7, 2014
PublishedOct 7, 2014
Warriors Trained15793
Total Skips2250
Total Code Submissions43911
Total Times Completed9788
JavaScript Completions3486
CoffeeScript Completions295
Java Completions3006
Python Completions2631
Haskell Completions372
Ruby Completions781
C# Completions244
Total Stars116
% of votes with a positive feedback rating84% of 856
Total "Very Satisfied" Votes627
Total "Somewhat Satisfied" Votes180
Total "Not Satisfied" Votes49
Ad
Contributors
  • mcclaskc Avatar
  • jhoffner Avatar
  • OverZealous Avatar
  • suuuzi Avatar
  • user578387 Avatar
  • bkaes Avatar
  • GiacomoSorbi Avatar
  • anter69 Avatar
  • aweleshetu Avatar
  • Souzooka Avatar
  • hobovsky Avatar
  • solitude Avatar
  • ejini战神 Avatar
  • farhanaditya Avatar
  • KayleighWasTaken Avatar
Ad