Translation of the article "Arrow functions, the basis" by Alexandre887 · Pull Request #111 · javascript-tutorial/lt.javascript.info · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

# Rewrite with arrow functions
# Perrašykite naudodami rodyklių funkcijas

Replace Function Expressions with arrow functions in the code below:
Žemiau pateiktame kode Function Expressions pakeiskite rodyklių funkcijomis:

```js run
function ask(question, yes, no) {
Expand All @@ -10,8 +10,8 @@ function ask(question, yes, no) {
}

ask(
"Do you agree?",
function() { alert("You agreed."); },
function() { alert("You canceled the execution."); }
"Ar jus sutinkate?",
function() { alert("Jus sutikote."); },
function() { alert("Jus atšaukėte vykdymą."); }
);
```
70 changes: 35 additions & 35 deletions 1-js/02-first-steps/17-arrow-functions-basics/article.md