Node.js · Middle · Question 30 of 75

Does the order of app.use() calls matter in Express?

Explanation

For example, express.json() must be registered before routes that read req.body, and the error handler must be last.

Further reading

Problem with a question

Node.js · Middle · question 30

Test yourself

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

Take this quiz