Coding Exercise: Make a GET Request with node-fetch
Learn to implement the getTriviaQuestion() function by making a GET request using node-fetch. Explore how to handle API responses and errors effectively with the try/catch pattern to ensure reliable data fetching.
We'll cover the following...
We'll cover the following...
Let’s complete the getTriviaQuestion() function code in the provided code snippet. ...