Skip to content

Conversation

@MiraMarshall
Copy link

TREK

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
What does it mean for code to be asynchronous? Asynchronous code allows multiple things to happen at the same time.
Describe a piece of your code that executes asynchronously. How did this affect the way you structured it? The Axios API calls execute asynchronously.
What kind of errors might the API give you? How did you choose to handle them? APIs give 400 and 500 status code errors. I choose to handle them by using reportStatus.
Suppose you needed to routinely find a specific Trip in the list by its ID field. Would it be advantageous to keep the list in order by the id field? Explain why or why not. It probably wouldn't be beneficial to keep the list in order by id field because there are better ways to keep track of a specific trip. For example, I could highlight trips that are clicked more frequently or create another section that stores trips that are more popular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant