Basics of using Javascript

Good web resources:

Using comparison operators in Javascript: http://www.w3schools.com/js/js_comparisons.asp

If statements:

if (time<20)

{

x="Good day";

}

else

{

x="Good evening";

}