// With normal functions, the `this` variable is created which references the objects that call them. Arrow functions do not create their own `this` binding.
const person = {
name: 'Brad',
sayHelloRegular: function () {
console.log('Regular:', this.name); // Regular Brad
},
sayHelloArrow: () => {
console.log('Arrow:', this.name); // undefined 'name'
},
};