You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/*Create a function name dailySpecials which takes in a parameter: `special`.
338
338
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.*/
339
339
340
+
functiondailySpecials(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
+
returnmenu;
360
+
}
361
+
console.log(dailySpecials('Friday'));
362
+
340
363
341
364
/*
342
365
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