# Javascript's async/await and Promise in a few words

DevFeed: [Javascript's async/await and Promise in a few words](<https://devfeed.tech/articles/javascript-s-async-await-and-promise-in-a-few-words-35422.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/javascripts-async-await-and-promise-in-a-few-words/>)

Author: Graham King

Published: 2018-07-27T14:30:45Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [async/await](<https://devfeed.tech/topics/async-await.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [Promise](<https://devfeed.tech/topics/promise.md>), [callback](<https://devfeed.tech/topics/callback.md>), [Exception](<https://devfeed.tech/topics/exception.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [async](<https://devfeed.tech/tags/async.md>), [await](<https://devfeed.tech/tags/await.md>), [callback](<https://devfeed.tech/tags/callback.md>), [exception](<https://devfeed.tech/tags/exception.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [software](<https://devfeed.tech/tags/software.md>)

## AI overview

This tutorial explains how JavaScript uses Promises and async/await to handle operations that could otherwise block its single thread. It shows how async/await makes callback-based asynchronous code appear more linear while failures are handled through exceptions.

## Source excerpt

Unraveling the magic of async/await: From callbacks to linear code.