삼항 연산자

							var now = new Date();
							var greeting = "Good " +((now.getHours() > 17) ? "evening." : "day.");
							alert(greeting);
						
							var now = new Date();
							var greeting = "Good ";
							if (now.getHours() > 17) {
								greeting += "evening.";
								alert(greeting);
							}else {
								greeting += "day.";
								alert(greeting);
							}