Javascript si, sinon et sinon si

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