mirror of https://github.com/01-edu/public.git
davhojt
3 years ago
committed by
Dav Hojt
1 changed files with 3 additions and 9 deletions
@ -1,14 +1,8 @@ |
|||||||
## Bloody Sunday |
## Bloody Sunday |
||||||
|
|
||||||
### Instructions |
### Instructions |
||||||
|
Let's get rid of Sundays, by removing them from the calendar. So now a week is only 6 days in length, from `"Monday"` to `"Saturday"`. |
||||||
|
|
||||||
You were missioned to make the world more productive. |
Create a function named `bloodySunday` which accepts a `Date`, and returns teh weekday as a `string`. |
||||||
Your solution ? no more sundays, |
|
||||||
you are ask to remove them from the existing calendar. |
|
||||||
|
|
||||||
So now, a week is 6 days from monday to saturday. |
> 01/01/0001 is a Monday. |
||||||
|
|
||||||
To prove your point, create a `bloodySunday` function |
|
||||||
that return what week day the given date is. |
|
||||||
|
|
||||||
> note that the 01/01/0001 is still a monday. |
|
||||||
|
Loading…
Reference in new issue