Switch Case With Default in JavaScript

<script type="text/javascript">
var day=new Date().getDay();

switch (day)
{
case 6:
  x="Today it's Saturday";
  break;
case 0:
  x="Today it's Sunday";
  break;
default:
  x= 6 - day +" days to Go for Weekend";
}
document.write(x);
</script>