Hint
Arrow functions do not have their own this. Never use them as object methods.
const obj = {
name: 'JSPrep',
arrow: () => typeof this,
regular() { return typeof this; },
};
console.log(obj.arrow());
console.log(obj.regular());undefined object
Explanation: Arrow functions inherit this from the enclosing lexical scope. At module level this is undefined. Regular methods get this set to the calling object.
Key Insight: Arrow functions do not have their own this. Never use them as object methods.