Node.js · Junior · Question 58 of 75

What happens if a request handler never calls res.end()?

Explanation

The response stays open. Every code path, including errors, must finish the response with res.end() or a framework method like res.send().

Further reading

Problem with a question

Node.js · Junior · question 58

Test yourself

Take the Node.js · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz