What does this log when an object has a regular method and an arrow function property?
var count = 10;
const counter = {
count: 1,
regular() {
return this.count;
},
arrow: () => this.count,
};
console.log(counter.regular());
console.log(counter.arrow());
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…