Asynchronous JavaScript & APIs

Summary

This course will teach you how to work with asynchronous JavaScript, enabling your web pages to handle delays and interact with remote servers. You'll begin by learning the fundamentals of asynchronous programming using callbacks, then progress to more modern approaches with Promises and async/await. You'll also explore how to make HTTP requests using the Fetch API and handle data from external sources. The course concludes with a set of projects that reinforce the material and show how these techniques are used in real applications.

Phase

Front-end Development

Prerequisites

Detailed Syllabus

Asynchronous Programming with Callbacks

  • Asynchronous Programming basics
  • Asynchronous Execution with setTimeout and setInterval
  • The Event Loop
  • Managing multiple Asynchronous Operations
  • Callbacks and Error Handling

Promises and async / await

  • Promise Basics and Chaining
  • Error Handling with Promises
  • The Promise API
  • Introduction to async / await
  • Combining async / await with Promises

Making HTTP Requests from JavaScript

  • Working with the Fetch API
  • Handling Data Serialization (JSON, FormData)
  • Cross-Domain Requests and CORS
  • Legacy APIs (jQuery and XMLHttpRequest)