Skip to content

Commit 12404fb

Browse files
authored
Merge pull request #105 from jorgesmash/patch-2
Typo
2 parents 97bf754 + 29956ca commit 12404fb

File tree

1 file changed

+1
-1
lines changed
  • 1-js/02-first-steps/15-function-expressions-arrows

1 file changed

+1
-1
lines changed

1-js/02-first-steps/15-function-expressions-arrows/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ In most cases when we need to declare a function, Function Declaration is prefer
476476

477477
So we should use Function Expression only when Function Declaration does not fit the task. We've seen a couple of examples of that in the chapter. And will see more in the future.
478478

479-
Arrow functions are handy for one-liners. The come in two flavors:
479+
Arrow functions are handy for one-liners. They come in two flavors:
480480

481481
1. Without figure brackets: `(...args) => expression` -- the right side is an expression: the function evaluates it and returns the result.
482482
2. With figure brackets: `(...args) => { body }` -- brackets allow to write multiple statements inside the function, but we need an explicit `return` to return something.

0 commit comments

Comments
 (0)