RANIARANIA Academy

Asynchronous JavaScript — Callbacks, Promises & async/await

Write reliable asynchronous code in Node.js — model non-blocking I/O correctly, replace nested callbacks with Promises, and read and write clear async/await. You will finish able to chain, parallelise and error-handle asynchronous work without race conditions or swallowed failures.

Watch the free preview

Non-blocking I/O and the event loop — free to watch, no account needed.

Node.js BEGINNER · 150 min · Certificate on completion · 3 CPD points

What you'll learn

  • Write reliable asynchronous code using callbacks, Promises and async/await
  • Explain the event loop and non-blocking I/O and predict execution order
  • Refactor nested callbacks into flat, readable Promise chains
  • Handle asynchronous errors so no failure is ever silently swallowed
  • Coordinate concurrent work with Promise.all, race, allSettled and any

Syllabus

The Event Loop & Callbacks
Non-blocking I/O and the event loopFree preview15 min
Callbacks and callback hell15 min
Promises — Chaining & Errors
Promises, states and chaining15 min
Error handling with Promises15 min
async / await
Writing async/await15 min
Error handling and control flow with async/await15 min
Concurrency & Interop
Promise combinators — all, race, allSettled, any15 min
Converting callback APIs with util.promisify15 min
Lab — 10 Exercises & Solutions
Exercises 1–515 min
Exercises 6–1015 min