Skip to content

Commit 7844e5a

Browse files
Merge pull request #114 from dandgerson/1-js/02-first-steps/15-function-expressions-arrows
translation 1-js/02-first-steps/15-function-expressions-arrows
2 parents 4f1387b + 7f57d30 commit 7844e5a

File tree

3 files changed

+163
-162
lines changed

3 files changed

+163
-162
lines changed

1-js/02-first-steps/15-function-expressions-arrows/1-rewrite-arrow/solution.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ function ask(question, yes, no) {
66
}
77

88
ask(
9-
"Do you agree?",
9+
"Вы согласны?",
1010
*!*
11-
() => alert("You agreed."),
12-
() => alert("You canceled the execution.")
11+
() => alert("Вы согласились."),
12+
() => alert("Вы отменили выполнение.")
1313
*/!*
1414
);
1515
```
1616

17-
Looks short and clean, right?
17+
Выглядит короче и понятней, правда?
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

2-
# Rewrite with arrow functions
2+
# Перепишите с использованием функции-стрелки
33

4-
Replace Function Expressions with arrow functions in the code:
4+
Замените код Function Expression стрелочной функцией:
55

66
```js run
77
function ask(question, yes, no) {
@@ -10,8 +10,8 @@ function ask(question, yes, no) {
1010
}
1111

1212
ask(
13-
"Do you agree?",
14-
function() { alert("You agreed."); },
15-
function() { alert("You canceled the execution."); }
13+
"Вы согласны?",
14+
function() { alert("Вы согласились."); },
15+
function() { alert("Вы отменили выполнение."); }
1616
);
1717
```

0 commit comments

Comments
 (0)