Chapter quiz · Express Foundations

Test what you learned.

8 questions on Express Foundations. Pass 70% to clear the chapter.

← Review chapter lessons

Quiz

Express Foundations — Chapter Quiz

Eight questions on app, routing, params, response, static, templates.

0/ 9
  1. Question 1
    1

    What does const app = express() return?

  2. Question 2
    2

    What's on req.params for the route app.get('/users/:id', ...)?

  3. Question 3
    3

    express.json() is mounted by default.

  4. Question 4
    4

    Why prefer res.json(...) over res.send(...)?

  5. Question 5
    5

    Which is the right place to mount express.static?

  6. Question 6
    6

    Set the "type" field in package.json to ___ to enable ESM in .js files.

  7. Question 7
    7

    In Express 5, what does :param? mean in a route?

  8. Question 8
    8

    Which req fields ship with Express out of the box?

    Select all that apply.

Pick an answer — instant feedback as you go.