GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Modul 6 von 11 · Medien

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.

 

Anleitung

Um im Kurs weiterzukommen, sende einen Versuch dieses Quiz ab. Du kannst ihn nach der letzten Frage absenden.

Zum gewählten Modul

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck