Skip to content

Commit

Permalink
Update solutions.js
Browse files Browse the repository at this point in the history
  • Loading branch information
victorlhlee authored Apr 6, 2018
1 parent 64c1977 commit 7e3b11a
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions solutions.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,29 @@ console.log("bought ", doughnutBought);
/*Create a function name dailySpecials which takes in a parameter: `special`.
Inside the function, create a switch statement that will check the daily specials of your favorite restaurant (or make up your own daily specials for each day of the week.*/

function dailySpecials(special) {
switch (special) {
case 'Monday':
menu = 'Sweet Onion Chicken Teriyaki';
break;
case 'Tuesday':
menu = 'Oven Roasted Chicken';
break;
case 'Wednesday' :
menu = 'Turkey';
break;
case 'Thursday' :
menu = 'Italian BLT';
break;
case 'Friday' :
menu = 'Tuna';
break;

}
return menu;
}
console.log(dailySpecials('Friday'));


/*
For loops - A for loop checks a condition a specific number of times and allows us to execute a code block and evaluate a condition to determine if our loop should run again.
Expand Down

0 comments on commit 7e3b11a

Please sign in to comment.