Hot answers tagged


When chaining promises each then has to return a promise for the subsequent then to proceed sequentially. However in your code both the then methods are listening to the same promise returned by setA. As a result they wont be executed sequentially. Kindly check this explanation on how chaining promises work to get a clear picture.

Only top voted, non community-wiki answers of a minimum length are eligible