What is async/await in JavaScript and what type does an `async` function always return?

JavaScript Associate Medium

JavaScript Associate — Medium

What is async/await in JavaScript and what type does an `async` function always return?

Key points

  • Async/await simplifies asynchronous code readability
  • `async` functions always return a Promise
  • Promises are used to handle asynchronous operations in JavaScript
  • Async/await is built on top of Promises

Ready to go further?

Related questions