BuildBot

JavaScript, Refreshed

Asynchrony: callbacks → promises → async/await

Lesson 4 of 5

The event loop runs your sync code first, then microtasks, then timers — async/await is sugar over that order.

What you'll learn

  • Trace why async code runs after the current synchronous code finishes
  • Distinguish microtasks (promises) from macrotasks (timers)
  • Read async/await as a flatter way to write promise chains
Members only

A free account unlocks this lesson and every other one.

Runnable challenges, knowledge checks, and progress that syncs across your devices. No card needed.

Not sure yet? Try the free lesson first: Values, types & coercion