Language Basics JavaScript DHTML

/* Note that Sunday=0, Monday=1, Tuesday=2, etc.*/



var d = new Date()
theDay=d.getDay()
switch (theDay){
  case 5:
    document.write("Finally Friday")
  break
  case 6:
    document.write("Super Saturday")
  break
  case 0:
    document.write("Sleepy Sunday")
  break
  default:
    document.write("Not weekend!")
}