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

Módulo 6 de 11 · Multimedia

Is it a weekend?

Kostas Diakogiannis

Is it a weekend?

D-2 Is it a weekend?

Create a function that accepts a specific date given as an argument and returns a message if the day of the specific date is a weekend day or not.

You may want to use the getDay function to have access to which day it is. This returns a number from 0 to 6.

0 Sunday,

1 is Monday,

6 is for Saturday etc.

You may find this info useful if you want to check what day a specific date is.

 

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?