// Problème avec fonction traditionnelle const obj = { name: "Jean", greet: function() { setTimeout(function() { console.log(this.name); // undefined! 'this' a changé }, 1000); } }; // Solution avec arrow function const obj = { name: "Jean", greet: function() { setTimeout(() => { console.log(this.name); // "Jean" - arrow conserve le 'this' }, 1000); } };