Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion exercise.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);