- Part 1: Let and Const
- Part 2: Template Literals
- Part 3: Default Parameter Values
- Part 4: Arrow Functions
- Part 5: Classes
Using Arrow Functions
To help in these common situations, ES6 introduced arrow functions. These are a reduced syntax versions of anonymous functions that are written using the arrow, =>.
In most cases, arrow functions can replace anonymous function usage with the shorthand syntax. Even when dealing with multiple parameters, an open and close parenthesis can enclose the data passed to the arrow function.