dev2 – fetch actor with movie database API

Introduce yourself to the movie database API. You’ll need to create an account so that you can get yourself a unique API key. And with that in-hand use the search people endpoint and my epic list of famous actors to rework the random user assignment into the random actor generator. Use fetch(apiURL) to make your requests and .then and .catch syntax to resolve the data returned from the API.

You can use the HTML / CSS files that I’ve created so you don’t have to rework those if you do not want to. But you’ll need to add your own JS file to complete the assignment. Also to concatenate all the different arrays of actors into a single array to generate a random actor string value, consider using spread syntax, it’s super helpful!

Leave a comment

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

css.php