Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tofuahdude
on Oct 29, 2020
|
parent
|
context
|
favorite
| on:
If Not SPAs, What?
Fyi return await is redundant and is just creating one additional callback you didn't need (b/c you will have to call this function with an await anyways)
chain--
on Oct 29, 2020
[–]
Try / catch is the exception, if you don't await then your catch handler won't work.
https://jakearchibald.com/2017/await-vs-return-vs-return-awa...
azhu
on Oct 29, 2020
|
parent
[–]
Semi funny that this exchange is kinda like proof of why JS catches the hate it does.
Consider applying for YC's Spring batch! Applications are open till Feb 11.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: