Skip to content

Conversation

@laneia
Copy link

@laneia laneia commented Jun 10, 2019

TREK

Congratulations! You're submitting your assignment!

Comprehension Questions

Question Answer
What does it mean for code to be asynchronous? Asynchronous code means that other code can be run while waiting for a specific event to be completed.
Describe a piece of your code that executes asynchronously. How did this affect the way you structured it? Axios API calls execute asynchronously, so it was structured so that then and catch were tacked on to get and post requests.
What kind of errors might the API give you? How did you choose to handle them? The API can return status codes like 404 and 500. I have it set up such that errors display a message on the page to the user.
Suppose you needed to routinely find a specific Trip in the list by it's ID field. Would it be advantageous to keep the list in order by the id field? Explain why or why not. It should not be particularly advantageous as searching by ID is a log(n) time complexity regardless of order.

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