Ajax-loader-large-white
How to use APIs with JavaScript
Endpoints

Endpoints are API-defined locations where particular data are stored. Just as you'll GET a pair of pants from PantsWorld or you'll GET a bag of peanuts from PeanutHut, you'll GET something different depending on the endpoint you use.

For instance, if you're using the API for a video hosting service, there might be endpoints for the most popular videos, the most recent videos, or videos belonging to a certain genre or category.

Instructions

We told you we'd quiz you! Set the answer variable in the editor to the letter associated with the best answer.

?
Stuck? Get a hint! Hint
Get live, fast support from Codecademy Advisors when you get stuck. Learn more.

Remember to set answer to a string, like so:

var answer = "A";

("A" is also not the best answer.)

script.js