From e3f126edaf8892a5fca4ffad9dde52799ea37536 Mon Sep 17 00:00:00 2001 From: Georgy Date: Mon, 21 Aug 2017 14:17:36 -0400 Subject: [PATCH] Update 15-function-expressions-arrows 'Must' is very restrictive. The code would work without `return` directive, both in general or `"use strict";` modes. For instance, we **must** declare variables, because code would break. --- 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 d71f0b1c..eca7019b 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 @@ -450,7 +450,7 @@ Like this: let sum = (a, b) => { // the figure bracket opens a multiline function let result = a + b; *!* - return result; // if we use figure brackets, must use return + return result; // if we use figure brackets, use return to get results */!* };