Hacker News new | past | comments | ask | show | jobs | submit login

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)



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...


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: