Page 1 of 1

Question 30 Using the snippet of code below, what time is it? hour = 11; if (hour <= 10) { message = "Time for breakf

Posted: Fri Jul 08, 2022 7:27 am
by answerhappygod
Question 30 Using The Snippet Of Code Below What Time Is It Hour 11 If Hour Lt 10 Message Time For Breakf 1
Question 30 Using The Snippet Of Code Below What Time Is It Hour 11 If Hour Lt 10 Message Time For Breakf 1 (58.35 KiB) Viewed 66 times
JAVASCRIPT
Question 30 Using the snippet of code below, what time is it? hour = 11; if (hour <= 10) { message = "Time for breakfast."; } else if (hour <= 14) { message = "Time for lunch."; } else if (hour <= 20){ message = "Time for dinner."; } else { message = "Time for a snack."; } O Time for a snack. O Time for breakfast. Time for dinner. Time for lunch.