Closed odv closed 5 years ago
function leo(oscar){
if (oscar === 88) {
return "Leo finally won the oscar! Leo is happy";
} else if (oscar === 86) {
return "Not even for Wolf of wallstreet?!";
} else if (oscar > 88) {
return "Leo got one already!";
} else {
return "When will you give Leo an Oscar?";
}
}
https://www.codewars.com/kata/leonardo-dicaprio-and-oscars/train/javascript