diff --git a/guide/english/javascript/es6/arrow-functions/index.md b/guide/english/javascript/es6/arrow-functions/index.md index 3b784ce163..53a2f499bf 100644 --- a/guide/english/javascript/es6/arrow-functions/index.md +++ b/guide/english/javascript/es6/arrow-functions/index.md @@ -47,6 +47,14 @@ let newOneWithOneParam = a => { } ``` +When there is only one statement or operation in the function body, braces are optional and the result is returned or undefined. + +```javascript +let a = 10; +let newOneParamWithNoBrackets = b => a + b; +console.log(newOneParamWithNoBrackets(20)); // 30 +``` + An incredible advantage of the arrows function is that you can not rebind an arrow function. It will always be called with the context in which it was defined. Just use a normal function. ```javascript // Old Syntax