JavaScript ES6 is a type or version which let us provide a way to write javascript syntax in a better way. ES6 version is having a feature or new method to use functions in javascript.
Difference 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 does the same thing. It is just the arrow function which is having a different way of writing and syntax. Javascript is quite awesome, and with arrow functions, javascript becomes more enhanced.