JavaScript if, sonst und sonst wenn

if (hour < 18) {
  greeting = "Good day";
} else {
  greeting = "Good evening";
}
naly moslih