Home »
MCQs »
Express.js MCQs
What does the following do, res.send()?
5. What does the following do, res.send()?
- This method specifies what to execute when a get request at the specified route is made
- This function binds and waits for connections on the provided host and port
- This method accepts an object as input and returns it to the requesting client
Answer: C) This method accepts an object as input and returns it to the requesting client.
Explanation:
res.send(), this method accepts an object as an input and returns it to the requesting client.