You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In reject a promise exercise, we didn't support promise.then while catching the rejection. Check this link.
catch and then(null, handleError) are basically the same thing, and instead of doing promise.then(null, handleError), an experienced user would just use promise.catch(handleError). Like issue #125.
I would like to send a pr if you think supporting promise.catch in reject a promise is reasonable. Looking forward to your opinion.
The text was updated successfully, but these errors were encountered:
In
reject a promise
exercise, we didn't supportpromise.then
while catching the rejection. Check this link.catch
andthen(null, handleError)
are basically the same thing, and instead of doingpromise.then(null, handleError)
, an experienced user would just usepromise.catch(handleError)
. Like issue #125.I would like to send a pr if you think supporting
promise.catch
in reject a promise is reasonable. Looking forward to your opinion.The text was updated successfully, but these errors were encountered: