ES6 Arrow functions

Updated: 11 December 2022

In regular functions the this keyword represented the object that called the function.

With arrow functions, the this keyword always represents the object that defined the arrow function.