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

Module 6 of 11 · Media

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.

 

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?