Firewall
Dont forget to thanks and give brianliest.
Wrong, You should get renters insurance to insure your items that you do have or will recieve in the future are safe
Is it asking for a web site like .edu? or something like that?
Lol I alit of people will be interested but we need to see proof that you are a girl but like just your face to know your not a catfish
Answer:
There is logic problem in condition of elseif statement that is (time<20).
Explanation:
elseif(time<20) will be true for time<10 that means program will never greet good morning as to make logic correct either change condition from <em>elseif(time<20)</em> to <em>elseif(time<20&& time>=10)</em>. Or change the order of condition like check first for <em>elseif(time<10) </em>
solution 1
if (time < 6) { greeting = "It is too early!"; }
else if (time < 20 && time>=10) { greeting = "Good Day!"; }
else if (time < 10) { greeting = "Good Morning!"; }
else { greeting = "Good Evening!"; }
console.log(greeting);
solution 2
if (time < 6) { greeting = "It is too early!"; }
else if (time < 10) { greeting = "Good Morning!"; }
else if (time < 20 ) { greeting = "Good Day!"; }
else { greeting = "Good Evening!"; }
console.log(greeting);