Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
function dayName(day) {
var whichDay = null;
switch (day) {
case 1:
whichDay = "Mon";
break;
case 2:
whichDay = "Tue";
break;
case 3:
whichDay = "Wed";
break;
case 4:
whichDay = "Thu";
break;
case 5:
whichDay = "Fri";
break;
case 6:
whichDay = "Sat";
brake;
case 7:
whichDay = "Sun";
break;
}
return whichDay;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment