D-4 Last day of each month
Write a function that calculates what is the last day of each month on a given year. Pass the given year as an argument to make this the most reusable way you can.
example: getLastDayForEachMonth(2018) should print to console:
Last day of January for 2018 is Tuesday,
Last day of February for 2018 is Monday,
Last of March for 2018 is Friday...
etc.