We have a problem with promises
Q: What is the difference between these four promises?doSomething().then(function () { return doSomethingElse(); });doSomething().then(function () { doSomethingElse(); });
doSomething().then(doSomethingElse());
doSomething().then(doSomethingElse);
</div> If you know the answer, then congratulations: you're a promises ninja. You have my permission to stop reading this blog post.</blockquote> <a href="http://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html">http://pouchdb.com/2015/05/18/we-have-a-problem-with-promises.html</a>I write about Laravel, PHP, AI and building better software.
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages. Join thousands of developers who read along.
No spam. Unsubscribe anytime. You can also follow me on X.
Found something interesting to share?
The community section is a place where developers share links to articles, tutorials and videos. Submit a link and help fellow developers discover great content. As a thank you, you'll receive a coupon for a discount on Spatie products.