Engrain by ByteRush

FND.10.04 BeginnerCore — asked often

Promises and async/await (first look)

Comes up in: Recruiter screen, JavaScript

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • why callbacks nest ("callback hell")
  • a promise as a future value
  • then/catch/finally
  • async/await
  • error handling with try/catch

Words you will know

promiseresolverejectasync functionawait

What you will practise

  • convert callback code to async/await

Interview questions this answers

  • What is a promise? What are its three states?