Node.js · Junior · Question 61 of 75

What is middleware in Express?

Explanation

Middleware runs in the order you register it. Typical uses: parsing the body, logging, authentication, CORS. Forgetting both next() and a response leaves the request hanging.

Further reading

Problem with a question

Node.js · Junior · question 61

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