title: Switch case - else condition
body: <pre><code>&lt;script type="text/javascript"&gt;
  //You will receive a different greeting based
  //on what day it is. Note that Sunday=0,
  //Monday=1, Tuesday=2, etc.
  
  var d = new Date();
  var 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("I'm looking forward to this weekend!");
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>If the <code>theDay = 5</code>, then we display <code>Finally Friday</code>. I want if theDay !=5, then display 'Finally Something'.. similarly for others too... </p>
  
  <p>Is it possible without an If/else condition. <strong>If the case 5 does not execute, can i do something else in that place?</strong></p>