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.
This commit is contained in:
Georgy 2017-08-21 14:17:36 -04:00 committed by GitHub
parent 25e97bb50e
commit e3f126edaf

View file

@ -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
*/!*
};