# Promises in JavaScript

DevFeed: [Promises in JavaScript](<https://devfeed.tech/articles/promises-in-javascript-26289.md>)

Original publisher: [Read original article](<https://masnun.com/promises-in-javascript/>)

Author: masnun

Published: 2017-08-11T10:33:42Z

Content type: tutorial

Language: en

Sources: [Abu Ashraf Masnun](<https://devfeed.tech/sources/abu-ashraf-masnun.md>)

Topics: [Promise](<https://devfeed.tech/topics/promise.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [async](<https://devfeed.tech/topics/async.md>)

Tags: [asynchronous](<https://devfeed.tech/tags/asynchronous.md>), [callback](<https://devfeed.tech/tags/callback.md>), [function](<https://devfeed.tech/tags/function.md>), [javascript](<https://devfeed.tech/tags/javascript.md>)

## AI overview

A tutorial explaining JavaScript Promises, why they are useful for asynchronous operations, and how they help replace nested callbacks with cleaner code. It introduces consuming and creating promises, including resolving and rejecting them.

## Source excerpt

We encounter promises in real life every now and then. You have promised to deliver that project within the next week. Your friend has promised to play Overwatch with you tonight. If you think about it, promises are everywhere around us. Promises in JavaScript also play similar roles. A Promise object in JS is an [...] The post Promises in JavaScript appeared first on Abu Ashraf Masnun.