Create a Promise Chain in JavaScript with Promise.prototype.then()

Marius Schulz
InstructorMarius Schulz

Share this video with your friends

Send Tweet

This lesson introduces the native JavaScript Promise object and the Promise.prototype.then() method. We’re gonna look at how to make an HTTP request using the Fetch API and how to asynchronously process the response in a promise chain.

In addition, we'll discuss the three mutually exclusive states a promise can be in: pending, fulfilled, or rejected.

Vimal Kumar
Vimal Kumar
~ a year ago

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://starwars.egghead.training/films. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing)

Carlos Santín
Carlos Santín
~ 2 weeks ago

Current start wars API is no longer working :/

Marius Schulz
Marius Schulzinstructor
~ a week ago

@Carlos: Apologies for the inconveniences. The API should be back up and running!