Arrow functions allows a shorter syntax for function expressions. You don't need the function keyword, the return keyword, and the curly brackets:


Syntax_1:
(parameter1, parameter2, ...) => {
  // function body
  return expression; // or multiple statements
}

Syntax_2:
() => { ... }

Example:
function pureAdd(a, b) {
    return a + b;
}

console.log(pureAdd(2, 3));