Browsed by
Tag: Promises

The difference between “fulfill” and “resolve” a Promise

The difference between “fulfill” and “resolve” a Promise

When we are working with Promises in Javascript, there are two terms commonly confused: fulfill and resolve. According to the dictionary: Fulfill: Bring to completion or reality; achieve or realize (something desired, promised, or predicted). Resolve: Settle or find a solution to (a problem, dispute, or contentious matter). That’s everything we need to solve all the mess around these terms that we tend to use indistinctly. Let’s take the next code snippet as an example: According to the definition of Promise, the method resolve can receive either…

Read More Read More