Hot answers tagged

1

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. https://javascript.info/...


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