DEV Community

Discussion on: This is How [JavaScript] Promises Really Work

Collapse
 
click2install profile image
click2install

You mention "handling errors" but then don't handle it. try/catch/log is almost always an anti-pattern as is try/catch/throw (and other variants) and whilst I appreciate this is a contrived tutorial example I see error swallowing all too often in production code. Nice write up otherwise 👍

Collapse
 
cleancodestudio profile image
Clean Code Studio

Appreciate the feed back @click2install