diff --git a/exercise.js b/exercise.js index 892318d..6b0ff25 100644 --- a/exercise.js +++ b/exercise.js @@ -47,4 +47,14 @@ Create a function that will check your budget. Create the following return state <50 => "Keep coding" >50 => "Donut King!"*/ - +function checkBudget(num){ + if(num<20) + return "Need to hustle"; + else if(num<50) + return "Keep coding"; + else if(num>50) + return "Donut King!"; +} + +var sen = checkBudget(24); +console.log(sen);