Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll

- 2x 2x
- 1.75x 1.75x
- 1.5x 1.5x
- 1.25x 1.25x
- 1.1x 1.1x
- 1x 1x
- 0.75x 0.75x
- 0.5x 0.5x
Learn how to set up an Express route that provides an endpoint to get the list of quotes and a specific quote.
Data snippet
const data = {
quotes: [
{
id: 8721,
quote: "We must accept finite disappointment, but we must never lose infinite hope.",
author: "Martin Luther King"
},
{
id: 5779,
quote: "Use what you’ve been through as fuel, believe in yourself and be unstoppable!",
author: "Yvonne Pierre"
},
{
id: 3406,
quote: "To succeed, you have to do something and be very bad at it for a while. You have to look bad before you can look really good.",
author: "Barbara DeAngelis"
}
]
}
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up-
Amy gh
5,915 Points1 Answer
-
Jivansh Bakshi
2,564 Points1 Answer
-
codingchewie
8,764 PointsWhy does a strict comparison operator not work here?
Posted by codingchewiecodingchewie
8,764 Points2 Answers
-
korovyef
7,056 Points1 Answer
-
Vlad Tanasie
7,201 Points2 Answers
View all discussions for this video
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up