Skip to content

Commit 7e3b11a

Browse files
authored
Update solutions.js
1 parent 64c1977 commit 7e3b11a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

solutions.js

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,29 @@ console.log("bought ", doughnutBought);
337337
/*Create a function name dailySpecials which takes in a parameter: `special`.
338338
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.*/
339339

340+
function dailySpecials(special) {
341+
switch (special) {
342+
case 'Monday':
343+
menu = 'Sweet Onion Chicken Teriyaki';
344+
break;
345+
case 'Tuesday':
346+
menu = 'Oven Roasted Chicken';
347+
break;
348+
case 'Wednesday' :
349+
menu = 'Turkey';
350+
break;
351+
case 'Thursday' :
352+
menu = 'Italian BLT';
353+
break;
354+
case 'Friday' :
355+
menu = 'Tuna';
356+
break;
357+
358+
}
359+
return menu;
360+
}
361+
console.log(dailySpecials('Friday'));
362+
340363

341364
/*
342365
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.

0 commit comments

Comments
 (0)