DEV Community

Cover image for JavaScript Promises Explained
Aritra Mukherjee
Aritra Mukherjee

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

3 1

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.

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay