I know arrow functions do not have their own "this", the borrow the "this" of their enclosing lexical scope.
const person = {
points: 23,
score: () => {
this.points++;
}
};
Why does the person.score
give me undefined, as an arrow function, it should have access to this?