Skip to content
This repository was archived by the owner on Oct 2, 2024. It is now read-only.

Conversation

@OlhaDanylevska
Copy link

Volunteers: Are you marking this coursework? You can find a guide on how to mark this coursework in HOW_TO_MARK.md in the root of this repository

Your Details

  • Your Name:
  • Your City:
  • Your Slack Name:

Homework Details

  • Module:
  • Week:

Notes

  • What did you find easy?

  • What did you find hard?

  • What do you still not understand?

  • Any other notes?

})

app.get("/quotes/search", (request, response) => {
let word = request.query.terms

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall the code is good so I just have a small comment: Keep the consistency in the naming. For example, in this case, you have 'query.terms' assigned to 'word'. But then at the function, searchTheQuote is using 'term'. 3 different names for the same content.

A good example is the /echo endpoint. Where the query.word is assigned to word, so both of them keep the consistency on the naming.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much Alvaro, will do it in the future!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants