js-mentorship-sasha / javascript

17 stars 5 forks source link

Solve 'Leonardo Dicaprio and Oscars' #48

Closed odv closed 5 years ago

odv commented 5 years ago

https://www.codewars.com/kata/leonardo-dicaprio-and-oscars/train/javascript

Deobp commented 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?";
}
}