Skip to content

Latest commit

 

History

History

return-the-day

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Complete the function which returns the weekday according to the input number:

  • 1 returns "Sunday"
  • 2 returns "Monday"
  • 3 returns "Tuesday"
  • 4 returns "Wednesday"
  • 5 returns "Thursday"
  • 6 returns "Friday"
  • 7 returns "Saturday"
  • Otherwise returns "Wrong, please enter a number between 1 and 7"