let hour = 10;
if (hour >=6 && hour <12){
console.log("Good Morning!")
}
else if (hour >=12 && hour <18){
console.log("Good Afternoon!")
}
else {
console.log("Good Night! or Good evening!")
}
result:
Good Morning!
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (0)