myResult =(3=="3")? "True":"False";
True
myResult=(3==="3")?"true":"false";
false
var current= new Date();
var currentHour=current.getHours();
Switch(true)
{
case(curentHour>8 && currentHour<12):
document.write("Morning, sunshine");
break;
case(currentHour>12 && currentHour<18):
document.write("");
break:
default:
document.write("");
break;
}