What I am trying to write is a simple function that takes in a day (D), X number of days and returns the day X days later.
Days can be represented by ('Mon', 'Tue', 'Wed', 'Thu','Fri','Sat','Sun').
X can be any int 0 and up.
For Example D='Wed', X='2', return 'Fri', D='Sat' and X='5', returns 'Wed'.
How do I do this in JS? Any tips and suggestions appreciated.