Operator Ternary Kembali Tanggal Salam

var now = new Date();
var greeting = "Good" + ((now.getHours() > 17) ? " evening." : " day.");
Lovely Lizard