Too Long; Didn't Read
Arrow functions are introduced in ES6 which is a modern style for writing javascript functions. Traditional Javascript functions are easy to understand and implement. Arrow functions don’t have inbuilt arguments property, unlike traditional Javascript functions. They are more convenient for callbacks, promises, or for methods like map, reduce, and forEach. The result for the above code will be as same as the previously written code. The syntax for the arrow function with a single argument can be implemented in two ways — or else we can also create the above function in a different way.