Asynchronous JavaScript Requests

About this Course

This course covers everything a developer needs to know to asynchronously send and receive data in their web applications. You'll dive into how asynchronous requests work by using the XHR object to create and send asynchronous requests for image and news article data. Then, you'll see how you can perform async requests more easily using third-party libraries and APIs like jQuery's Ajax and the Fetch API.

Course Cost

Free

Timeline

Approx. 3 weeks

Skill Level

Intermediate

Included in Course

Rich Learning Content

Interactive Quizzes

Taught by Industry Pros

Self-Paced Learning

Student Support Community

Join the Path to Greatness

This free course is your first step towards a new career with the Front-End Web Developer Nanodegree Program.

Lesson 3

Lesson 3: Ajax with Fetch

Use JavaScript promises to create a fetch request and handle the data asynchronously

Learn how to handle errors for failed requests

Prerequisites and Requirements

This course is ideal for students with intermediate level knowledge of JavaScript. You should have experience working with JavaScript's Object Oriented (prototypal inheritance) capabilities and using native JavaScript Promises. To brush up on these skills, check out Object Oriented JavaScript and JavaScript Promises.

Why Take This Course

Retrieving data asynchronously is now the norm with apps like Twitter, Facebook, and Google sending and retrieving mountains of data without having to stop and wait for processes to finish or to reload the page. Create smooth, modern web applications by using Ajax techniques to retrieve data asynchronously.