Understanding Promises in JavaScript

Taran
codeburst
Published in
3 min readOct 6, 2020

--

What are promises and what is the difference between Promise.all, Promise.allSettled, Promise.race and Promise.any?

Introduction

Promises in JavaScript are used to handle asynchronous operations by keeping track of whether a certain event has happened. If that certain event has taken place, it determines what happens next. Promises return a value which is either a…

--

--

I am a Full stack developer. I enjoy learning and building new skills, and sharing what I’ve learned.