Ran (Reine)
Jan 7, 2021

--

Yeap, in an actual promise, then() takes two arguments, a callback for a success case, and another for the failure case.

This illustrates that find() isn't an actual promise (that's why chaining .then() after find() doesn't give you the two callbacks that'll you'll get with actual promises).

Thanks for your question! :)

--

--

Ran (Reine)
Ran (Reine)

Written by Ran (Reine)

I live for days when I can watch skies of blue, while enjoying the view. Most other days I’m a city rat who scuttles between Art and Coding. SG NTU CS Grad.

No responses yet