Async await without try catch in JavaScript
Published in
1 min readNov 3, 2017
Before introduction to async await my typical code used to look like below.
If your using Express framework you would be interested in this article
https://medium.com/tech-buddy/handling-errors-in-express-gracefully-4bf289ddf9a1
on introduction of async await the same code can be written as following.
if you are not fan of try catch just like me or just want to avoid using them then you can write same code as below.
if you wish to know which specific function caused error with some error code(which helps in debugging in greater extent).
Thanks for Reading and Happy Coding.