
The "this" keyword can be tricky. Ania helps you sort out one of its quirks here.
Arrow functions don't have their own 'this'! They inherit it from the parent scope. So obj.name is undefined here. Use regular functions when you need 'this' to refer to the object!
freeCodeCamp.org
Learn to code for free....