Promises in JavaScript are used to execute blocking code asynchronously. In this article, we dive in to JavaScript promises and the related concepts!
Hey geeks! 🎉 In this article, we are looking into Promises in JavaScript! As usual, I'm going to explain some foundation building concepts and then dive straight into the syntax.
Here's what we will go through: > Foundation concepts 📚 - Asynchronous Code - Blocking code - Concept of threads
> Creating Promises 👨💻👩💻 - Syntax - Resolve, Reject - Then, Catch, Finally
> Live examples ✨ - Resolving a promise - Rejecting a promise - Using finally() on a promise
















