-
Notifications
You must be signed in to change notification settings - Fork 48
Ports - Faiza #41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Ports - Faiza #41
Conversation
TREKWhat We're Looking For
|
index.js
Outdated
|
|
||
| reportStatus('Sending trip data...'); | ||
|
|
||
| let tripId = $(this).html(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Your event handler is an arrow function so... it doesn't have a this reference. You could use event.target instead. But of course you'll need something in this method to indicate which trip to submit. Maybe you could put it in the form as a hidden field, or you could use a closure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Post request is now complete.
TREK
Congratulations! You're submitting your assignment!
Comprehension Questions
Tripin 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.