From 29956cade5b4a08d02468145c77648d8410e9331 Mon Sep 17 00:00:00 2001 From: jorgesmash Date: Wed, 19 Jul 2017 13:33:27 -0400 Subject: [PATCH] Typo "The come in two flavors" should be "They come in two flavors". --- 1-js/02-first-steps/15-function-expressions-arrows/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/1-js/02-first-steps/15-function-expressions-arrows/article.md b/1-js/02-first-steps/15-function-expressions-arrows/article.md index 44cf3764..adc854e3 100644 --- a/1-js/02-first-steps/15-function-expressions-arrows/article.md +++ b/1-js/02-first-steps/15-function-expressions-arrows/article.md @@ -476,7 +476,7 @@ In most cases when we need to declare a function, Function Declaration is prefer 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. -Arrow functions are handy for one-liners. The come in two flavors: +Arrow functions are handy for one-liners. They come in two flavors: 1. Without figure brackets: `(...args) => expression` -- the right side is an expression: the function evaluates it and returns the result. 2. With figure brackets: `(...args) => { body }` -- brackets allow to write multiple statements inside the function, but we need an explicit `return` to return something.