← Quiz: Node, Express and REST: all 10 questions
Quiz: Node, Express and REST · Question 6 of 10
For the URL /api/courses?maxPrice=1000, how does Express read 1000?
For the URL /api/courses?maxPrice=1000, how does Express read 1000?
- A.req.params.maxPrice
- B.req.query.maxPrice
- C.req.body.maxPrice
- D.req.headers.maxPrice
Answer & explanation
Correct answer: req.query.maxPrice
Query-string values are in req.query; route parameters are in req.params.
Can you get the rest right without peeking?
Take the timed Quiz: Node, Express and REST quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →