var time = Date().getHours(); // or something var clockTime = time > 12 ? 'PM' : 'AM' ;
var res = 1 == 1 ? 'true' : 'false' // res = true var res = 1 == 2 ? 'true' : 'false' // res = false
if (lemons) document.write("foo gave me a bar");