It is very interesting topic and asked in many interviews regarding JavaScript.
Arrow functions is a shorter and more predictable way to define functions in JavaScript, and it was introduced in ECMAScript 6 (ES6) to make code writing easier and more readable.
In simple word,
arrow function allows us to write functions in a shorter and cleaner way compared to regular functions.
Here is the simple example...
//Regular function
function add(a,b) {
return (a+b); }
var result = add(10,20);
console.log(result);
And Here is the arrow function
//Arrow function
let add = (a,b) => a+b;
let result = add(10,20);
console.log(result);