JavaScript ES6 is a type or version which let us provide a way to write javascript syntax on a better way. ES6 version is having a feature or new method to use functions in javascript.
Diffrence between normal js function and ES6 arrow function.
Function NormalFunction ()
{
console.log("This is a normal function");
}
NormalFunction=()=> {
console.log("This is an arrow function");
}
As you see, both the function do the same thing. It is just the arrow function which is having a diffrent way of writing and syntax. Javacript is quite awesome and with arrow functions javascripts becomes more enhanced.