All quizzes
Free quiz · 50 questions in the bank

Express quiz

Test your Express knowledge with a free interactive quiz — 50 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

A middleware function in Express has the signature:

Questions in this quiz
  1. A middleware function in Express has the signature:
  2. To serve files from a `public` directory at the URL root:
  3. What does the `next` parameter do in middleware?
  4. To use a template engine (e.g. Pug or EJS), you typically:
  5. `app.listen(3000)` does what?
  6. For a route `app.get("/users/:id", ...)`, the value of the URL segment is available as:
  7. In a typical Express app, when an error happens inside a route handler that you want to forward to error middleware, you call:
  8. You want a "404 not found" handler that catches anything no route matched. The right place to put it is:
  9. `app.use(middleware)` (no path) mounts the middleware at:
  10. To allow cross-origin requests from browser clients, you typically:
  11. To handle JSON request bodies in Express 4+, you typically:
  12. A request body sent as `application/x-www-form-urlencoded` (classic HTML form) is parsed by:
Gaps to close?
Read the curated Express notes — core concepts, patterns, interview prep.
Express notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web