6 Reasons Why JavaScript’s Async/Await Blows Promises Away (Tutorial)
Mostafa Gaafar

In this example, you return a promise instead of a value:

const makeRequest = async () => {

const value1 = await promise1()

const value2 = await promise2(value1)

return promise3(value1, value2)


At least in c# you have to await the last promise, as well, when you’re in an async function. (unless you want to return Task<Task<T>> or in JS Terms, a promise containing a promise)

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.