| Start |
|---|
| const/let declarations Unlike |
| Arrow functions Arrow functions automatically bind to the 'this' lexical scope of the surrounding code. vs |
| Arrow Function Example Let's consider this example, that outputs the squares of the numbers 3, 5, and 7: Run in RunKit (opens new window) The function passed to Run in RunKit (opens new window) However, this can be written even more concise. If the function body consists of only one statement and that statement computes the return value, the curly braces of wrapping the function body can be removed, as well as the |
destructuring |
flow |
ES6 Class |
Read Article
https://develop.horje.com/learn/1434/reference