Node.js · Middle · Question 31 of 75

What is express.Router() used for?

Explanation

For example, a users router mounted with app.use("/users", usersRouter). It keeps large apps organized.

Further reading

Problem with a question

Node.js · Middle · question 31

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