JavaScript Promises: then(f,f) vs then(f).catch(f)

What’s the difference between promise.then(fn, fn) and promise.then(fn).catch(fn) when using JavaScript promises?


This content originally appeared on Dmitri Pavlutin Blog and was authored by Dmitri Pavlutin

What's the difference between promise.then(fn, fn) and promise.then(fn).catch(fn) when using JavaScript promises?


This content originally appeared on Dmitri Pavlutin Blog and was authored by Dmitri Pavlutin


Print Share Comment Cite Upload Translate Updates
APA

Dmitri Pavlutin | Sciencx (2021-07-21T08:30:00+00:00) JavaScript Promises: then(f,f) vs then(f).catch(f). Retrieved from https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/

MLA
" » JavaScript Promises: then(f,f) vs then(f).catch(f)." Dmitri Pavlutin | Sciencx - Wednesday July 21, 2021, https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/
HARVARD
Dmitri Pavlutin | Sciencx Wednesday July 21, 2021 » JavaScript Promises: then(f,f) vs then(f).catch(f)., viewed ,<https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/>
VANCOUVER
Dmitri Pavlutin | Sciencx - » JavaScript Promises: then(f,f) vs then(f).catch(f). [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/
CHICAGO
" » JavaScript Promises: then(f,f) vs then(f).catch(f)." Dmitri Pavlutin | Sciencx - Accessed . https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/
IEEE
" » JavaScript Promises: then(f,f) vs then(f).catch(f)." Dmitri Pavlutin | Sciencx [Online]. Available: https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/. [Accessed: ]
rf:citation
» JavaScript Promises: then(f,f) vs then(f).catch(f) | Dmitri Pavlutin | Sciencx | https://www.scien.cx/2021/07/21/javascript-promises-thenff-vs-thenf-catchf/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.