Async JavaScript
Fetch data, handle loading and errors, and write async code with promises and async/await.
What you'll learn
- Explain what the event loop does with timers and network requests
- Chain promises and convert them to async/await
- Call APIs with fetch and parse JSON
- Show loading, empty and error states
- Run requests in parallel with Promise.all
About this course
You work with a public API from the first module. You learn the event loop, promises and async/await, then build a weather lookup page that handles slow networks and bad input.
Course curriculum
4 modules and 12 lessons over 4 weeks. Plan for about 12 learning hours.
01The event loopWeek 1 · 3 lessons
- Call stack and task queue
- setTimeout experiments
- Callbacks and their limits
02PromisesWeek 2 · 3 lessons
- Creating and chaining promises
- Error handling with catch
- Promise.all and Promise.race
03async/await and fetchWeek 3 · 3 lessons
- Rewriting chains with async/await
- fetch, headers and JSON
- try/catch around requests
04Weather lookup projectWeek 4 · 3 lessons
- Search form and request
- Loading and error states
- Caching the last result
Project
Weather lookup page. A city search that calls a public weather API and handles loading, errors and empty results.
Who this course is for
Learners who write JavaScript and get confused by callbacks, promises or fetch.
Prerequisites
You know functions, arrays, objects and basic DOM work.
What's included
- 180-day course access
- Project brief
- Starter repository
- Coding labs
- Reference solutions
- One written project review
- A digital completion certificate
Learning format
Project-based online course, part of our guided project courses. One written project review.
Access and delivery
- Course access is delivered within 15 minutes after payment.
- Written project review is returned within 2 business days of submission.
- Completion materials are issued within 2 business days after the project is approved.
Certificate
You receive a digital completion certificate. Completion materials are issued within 2 business days after the project is approved.
Frequently asked questions
When does access start?
Course access is delivered within 15 minutes after payment.
Is payment taken on this website?
No. After you submit your enrollment request, we reply by email with payment details and enrollment confirmation.
Does this course guarantee a job or income?
No. It is an education and training service and does not include employment, income or placement guarantees.
Can I cancel?
Our Refund and Cancellation Policy lists the terms for project-based programs.