Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: