100% “Путь к молоку” в Программировании на JavaScript - Условия - Практика
let time = 15;
let goToDairy = false;
let goToStore = false;
let goToMarket = false;
if (time === 7 || time === 20 || time >= 19 && time < 20)
goToMarket = true
else if (time >= 8 && time < 13 || time >= 14 && time < 19)
goToDairy = true
else if (time >= 13 && time < 14)
goToStore = true
else {
goToDairy = false
goToStore = false
goToMarket = false
}