GoConqr has a new look! Let us know what you think.

Module 9 of 11 · Media

Last day of each month

Kostas Diakogiannis

Last day of each month

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.

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?