Browse Source

Delete dr-strange.en.md

content-update
Clément 4 years ago committed by GitHub
parent
commit
285354d7d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 32
      subjects/dr-strange.en.md

32
subjects/dr-strange.en.md

@ -1,32 +0,0 @@
## Dr Strange
### Instructions
You have been given the mission to create a new sense of time.
Instead of a normal week having only 7 days, you will have 14 days.
Your mission is to create an `addWeek` function with one parameter of `Date` type.
So now, a week is 14 days from `Monday` to `Sunday` then `secondMonday` to `secondSunday`.
Week number should be count from `0001-01-01`
Now imagine you have a doctor appointment and you have to wait some hours.
But you do not want to wait, so what you need to do is create a
function `timeTravel` that allows you to change the time according to your needs, this function
it can go backwards or forwards in time.
You will have a function that takes a date and you will pass 3 more parameters to change
the hour, minute and seconds.
### Example
```js
timeTravel({ date, hour, minute, second })
timeTravel({
date: new Date('2020-05-29 23:25:22'),
hour: 21,
minute: 22,
second: 22,
})
// Output: Date { 2020-05-29T21:22:22.000Z }
```
Loading…
Cancel
Save