JSFiddle - React, Tailwind, and code Playground
by Jessie Lau
JavaScript
function caffeineBuzz(n){
if(n % 3 == 0 && n % 4 == 0 && n % 2 == 0){
return n + "Script";
}
else if(n % 3 == 0 && n % 4 == 0){
return "Coffee";
}
else if(n % 3 == 0){
return "Java";
}
else{
return "mocha_missing!";
}
}
console.log(caffeineBuzz(10));