Created
August 5, 2023 16:58
-
-
Save Kamilnaja/a1fb29202f100fd1651f7e931980e2e6 to your computer and use it in GitHub Desktop.
Simplify me
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function dayOfTheWeek(num) { | |
switch (num) { | |
case 1: | |
return 'Monday'; | |
case 2: | |
return 'Tuesday'; | |
case 3: | |
return 'Wednesday'; | |
case 4: | |
return 'Thursday'; | |
case 5: | |
return 'Friday'; | |
case 6: | |
return 'Saturday'; | |
case 7: | |
return 'Sunday'; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment