Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@digitalconceptvisuals
Created July 30, 2020 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save digitalconceptvisuals/f74b279d4ff4c16e1a71ec0e7f7a74bf to your computer and use it in GitHub Desktop.
Save digitalconceptvisuals/f74b279d4ff4c16e1a71ec0e7f7a74bf to your computer and use it in GitHub Desktop.
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