4 ms·
This code wouldn't execute properly, since arrow functions are scoped to the surrounding code block and cannot be rebound. You would need to use `function` for
by cribbles 8y ago
This code wouldn't execute properly, since arrow functions are scoped to the surrounding code block and cannot be rebound.
You would need to use `function` for this:
function getFoo() {
return this.foo;
}
- tobyhinloopen 8y agoYou're right! I forgot about that