Node.js · Junior · Question 58 of 75
What happens if a request handler never calls res.end()?
- ✓Correct answer: The client waits until the request times out
- 2The server crashes
- 3Node.js ends the response automatically
Explanation
The response stays open. Every code path, including errors, must finish the response with res.end() or a framework method like res.send().