Please could someone tell me where I'm going wrong here, I know it's something simple I'm missing so forgive my ignorance but I can't find the error.
let day = "Monday"
function alarmTime(day) {
if (day == "Saturday") {
return "Set alarm for 8:00am"
} else if (day == "Friday") {
return "Set alarm for 5:35am"
} else if (day == "Sunday" || "Thursday") {
return "Set alarm for 4:50am"
} else {
return "Set alarm for 7:00am"
}
}
console.log(alarmTime(day));
if day is Mon, Tue, Wed then it returns 4:50am??? Why?? It should reach the final else statement and return 7:00am ♀️