Easy JavaScript Part 6 : Arrow functions in JavaScript

The JavaScript arrow function is a shorter way of writing a function expression that was introduced in ECMAScript 6. Usually, in JavaScript, you can create a function in two ways:

Function as a statement.
Function as an expression.

A function statement can be created as shown below:

Link: https://dzone.com/articles/easy-javascript-part-6-arrow-functions-in-javascri?utm_medium=feed&utm_source=feedpress.me&utm_campaign=Feed%3A+dzone%2Fwebdev