Sunday, November 4, 2018

.then versus .done versus .fail in the Promise API

When you chain on a .then it will take two arguments. The first is for a function for the success scenario and the second is for a function for the failing scenario. In contrast, .done just takes the success scenario argument and .fail just takes the failing scenario argument.

No comments:

Post a Comment