dev2 – Get all the actor credits

In the previous problem we used the movie database API to fetch an actor’s basic information using the search people endpoint. Now we’re going to use closure to pass the actor’s id to make another fetch request to the combined credits endpoint. Using this response you will then create all the credits for the actor.

To do this you’re going to need to remember how to clear all the elements in the div.credits and then create a new for each credit in the combined credits.

Oh and it helps to move the next actor button to the top, otherwise it’s often a long scroll to the bottom!

Leave a comment

Your email address will not be published. Required fields are marked *