DEV Community

Cover image for try...catch works synchronously
Ashraful Islam
Ashraful Islam

Posted on

try...catch works synchronously

try...catch works synchronously
If an exception happens in “scheduled” code, like in setTimeout, then try...catch won’t catch it:

Top comments (0)