Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cribbles
on Jan 27, 2019
|
parent
|
context
|
favorite
| on:
Future JavaScript: what is still missing?
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
on Feb 6, 2019
[–]
You're right! I forgot about that
Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
You would need to use `function` for this: