Direction: Choose the correct option
Q1.
How do you define a route parameter in Express?
Direction: Choose the correct option
Q2.
How can you access a route parameter named 'userId' in a request handler?
Direction: Choose the correct option
Q3.
What will req.query contain?
Direction: Choose the correct option
Q4.
Given the URL /products/5/reviews?sort=desc, how do you access the product ID and sort option?
Direction: Choose the correct option
Q5.
What is the data type of route parameters?
