Start a personal dev blog on your domain for free with Hashnode and grow your readership.
Get Started

How does JS keep its Promises?

Promises is a core language feature that makes Asynchronous programming with Javascript simpler. Promises allow us to work with callbacks in a different manner, by asking the Promise to call the callback function we need.

Imagine a scenario where your friend has promised to accompany you on the day of your driving test to boost your confidence.

Two things can happen

  1. Promise is kept and you are happy
  2. For some reason, your friend didn't keep the promise.

In JavaScript, this equates to :

  1. Promise is fulfilled
  2. Promise is rejected


Start a personal dev blog on your domain for free and grow your readership.

3.4K+ developers have started their personal blogs on Hashnode in the last one month.

Write in Markdown · Publish articles on custom domain · Gain readership on day zero · Automatic GitHub backup and more

No Comments Yet