In your promise example, you are nesting readPromise() in a callbackhell structure again, even if there is less lines of code.
Maybe you don't know, and that's the reason i write this, to share knowledge, if inside then() block you return a promise again, you can append another then to the chain.
Nice post, i just want to say one thing.
In your promise example, you are nesting readPromise() in a callbackhell structure again, even if there is less lines of code.
Maybe you don't know, and that's the reason i write this, to share knowledge, if inside then() block you return a promise again, you can append another then to the chain.
Thanks!!, didn't notice