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

It's the same code. Async/await is just syntactic sugar over the promise syntax.

To me depends on what you are doing, there are cases where using .then()/.catch() and .finnally() makes the code more concise and simpler than using async/await.



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

Search: