DEV Community

Discussion on: What are the differences between callbacks, promises, async/await? Aren't they essentially the same?

Collapse
 
shadowtime2000 profile image
shadowtime2000

async/await is essentially easier promises.

const foo = async (num) => num + 1;
// Is the same as
const foo = (num) => Promise.resolve(num + 1);
Enter fullscreen mode Exit fullscreen mode

With the difference between Promises/async/await and callbacks, callbacks are less readable.