Arrow functions are shorter, but the real differences are in binding behavior, not just syntax.
js
const regular = function () {};
const arrow = () => {};
const short = x => x * 2; // implicit return for one expression
The key differences
— arrows inherit from the enclosing scope. This is the most important difference and why they're great for callbacks:
