Skip to content

Commit 77e2dd8

Browse files
authored
Merge pull request #18 from mtsonkova/patch-4
Arrow functions, the basics
2 parents ac98b6f + da5a67d commit 77e2dd8

File tree

1 file changed

+5
-5
lines changed
  • 1-js/02-first-steps/16-arrow-functions-basics/1-rewrite-arrow

1 file changed

+5
-5
lines changed
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 below:
4+
Заместете функционалните изрази с функции със стрелки в долния код:
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)