
What if JavaScript Promise Methods were IPL Teams?
We have all promised or got a promise from someone at some stage of life right? Promises like, "I will call you tomorrow" or "I won't do that next time" or " ee sala cup namde " but it's not necessary that every promise will get fulfilled everytime right? A promise alone doesn't guarantee success. Strangely enough, it's similar in JavaScript, a promise represents something that is expected to be completed in future, it can either successfully complete or fail completely. But you might be wondering, why add something that doesn't guarantee success or why are we talking about a "promise" in programming? What is a Promise? Well, JavaScript in itself is a single threaded programming language, which means it can do one task at a time, so if we have written long code for a website, then entire application will wait for API calls or database responses one by one before executing the next lines of code, which would make it look like its frozen. So promise was introduced as a placeholder for ta
Continue reading on Dev.to JavaScript
Opens in a new tab

![[MM’s] Boot Notes — The Day Zero Blueprint — Test Smarter on Day One](/_next/image?url=https%3A%2F%2Fcdn-images-1.medium.com%2Fmax%2F1368%2F1*AvVpFzkFJBm-xns4niPLAA.png&w=1200&q=75)

