From 285354d7d6817f884d4449f91e113d98de4d51c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Tue, 16 Jun 2020 23:16:14 +0200 Subject: [PATCH] Delete dr-strange.en.md --- subjects/dr-strange.en.md | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 subjects/dr-strange.en.md diff --git a/subjects/dr-strange.en.md b/subjects/dr-strange.en.md deleted file mode 100644 index ff9c0b19..00000000 --- a/subjects/dr-strange.en.md +++ /dev/null @@ -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 } -```