Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
foldr
on April 2, 2020
|
parent
|
context
|
favorite
| on:
How to manage HTML DOM with vanilla JavaScript onl...
This would be equally clear if the author had just used a sequence of if statements with a 'return' in each one. (Note that Javascript's case has fallthrough, so you can't immediately conclude that only one branch of a case will be executed.)
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: