-
Notifications
You must be signed in to change notification settings - Fork 43
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
Hannah Cameron - Trek - Octos #35
base: master
Are you sure you want to change the base?
Conversation
TREKWhat We're Looking For
|
const URL = "https://ada-backtrek-api.herokuapp.com/trips" | ||
|
||
const userMessage = (message) => { | ||
$('#user-message').html(message) |
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.
Watch out for little expressions like these where you're missing semi-colons
const loadTrips = function loadTrips() { | ||
const tripList = $('#trips-list'); | ||
tripList.empty(); | ||
userMessage('Loading in trips..') |
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.
Semi-colons on all of your userMessage
function calls!
|
||
const reserveTrip = (event) => { | ||
event.preventDefault(); | ||
const tripID = $('form')[0][2].value |
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.
A comment about what this code is doing would be good readability and reusability
TREK
Congratulations! You're submitting your assignment!
Comprehension Questions