DEV Community

Cover image for JavaScript Promises Explained
Aritra Mukherjee
Aritra Mukherjee

Posted on • Originally published at geekyminds.co.in on

JavaScript Promises Explained

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

Continue reading "JavaScript Promises Explained | JavaScript Basics"

The post JavaScript Promises Explained | JavaScript Basics appeared first on GeekyMinds.

Top comments (0)