Write a script that gets the top five stories for the day from the New York Times using the NYT API.
Bonus: Get stories from two or three categories instead of just one.
- What do you do if the NYT API fails?
- How do you protect yourself from XSS attacks with third-party API data?
This project is part of the Vanilla JS Academy.