¡GoConqr estrena diseño! Cuéntanos qué te parece.

Módulo 9 de 11 · Multimedia

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.

Instrucciones

Para avanzar en el curso, envía un intento de este test. Puedes enviarlo después de la última pregunta.

Ir al módulo elegido

Escríbenos

¿Sobre qué es tu mensaje?

¿Qué te parece el nuevo diseño?

¿Te gusta?