Loading [MathJax]/jax/output/HTML-CSS/fonts/TeX/fontdata.js

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.

 

Is it a weekend?

Kostas Diakogiannis
Module by Kostas Diakogiannis, updated more than 1 year ago
No tags specified