Something is wrong with the logic in the program above. For which values of time will the greeting "Good Morning!" be displayed? var time = promptNum ("What hour is it (on a 24 hour clock) ?"); var greeting = ""; if (time < 6) { greeting = "It is too early!"; } else if (time < 20) { greeting = "Good Day!"; } else if (time < 10) { greeting = "Good Morning!"; } else { greeting = "Good Evening!"; } console. log (greeting);
+5
Answers (1)
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Something is wrong with the logic in the program above. For which values of time will the greeting "Good Morning!" be displayed? var time = ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.