Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
SeanLuke
on Dec 19, 2018
|
parent
|
context
|
favorite
| on:
JavaScript Getter-Setter Pyramid
I got the syntax right? Was completely guessing.
basil-rash
on Dec 19, 2018
[–]
Yep. Nowadays you'd be more likely to see it as:
return () => { const next = i; i = i * 2; return next; }
But in this case the two are equivalent.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: