What day of the week is it?
<script>
function questionOne () {
var dayOfWeek = prompt("What day of the week is it?", "monday");
switch(dayOfWeek) {
case "saturday" :
document.getElementById('data').innerHTML = "Hot Damn, it's the weekend!";
break;
case "sunday" :
document.getElementById('data').innerHTML = "Friggin sweet, another day off!";
break;
case "monday" :
document.getElementById('data').innerHTML = "Dude! What did you do to deserve a Monday?";
break;
case "tuesday" :
document.getElementById('data').innerHTML = "At least Monday has been beaten into submission.";
break;
case "wednesday" :
document.getElementById('data').innerHTML = "Hump day...half way there n' junk!";
break;
case "thursday" :
document.getElementById('data').innerHTML = "I can see Friday coming over the horizon!";
break;
case "friday" :
document.getElementById('data').innerHTML = "Slow and steady, the weekend is in sight! It's Friday!";
break;
default :
document.getElementById('data').innerHTML = "You have ripped the space-time continuum dude...RUN!";
break;
}
}
</script>