You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 1-js/5-data-types/03-date/3-weekday/task.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,14 +2,11 @@ importance: 5
2
2
3
3
---
4
4
5
-
# День недели в европейской нумерации
5
+
# European weekday
6
6
7
-
Напишите функцию, `getLocalDay(date)` которая возвращает день недели для даты `date`.
8
-
9
-
День нужно возвратить в европейской нумерации, т.е. понедельник имеет номер 1, вторник номер 2, ..., воскресенье - номер 7.
7
+
European countries have days of week starting with monday (number 1), then tuesday (number 2) and till sunday (number 7). Write a function `getLocalDay(date)` that returns the "european" day of week for `date`.
10
8
11
9
```js no-beautify
12
-
var date =newDate(2012, 0, 3); // 3 янв 2012
13
-
alert( getLocalDay(date) ); //вторник, выведет 2
10
+
let date =newDate(2012, 0, 3); // 3 Jan 2012
11
+
alert( getLocalDay(date) ); //tuesday, should show 2
0 commit comments