All Topics/Express.js
25 of 25 questions
// Interview Deck · EXPRESSJS

Express.js

Routing, middleware, error handling, and structuring APIs the way real backend projects expect.

01
Beginner

What is Express.js and why use it over the native http module?

Card #1
02
Beginner

How do you set up a basic Express app?

Card #2
03
Beginner

Explain basic routing in Express — app.get, app.post, app.put, app.delete.

Card #3
04
Beginner

Difference between route parameters and query parameters?

Card #4
05
Intermediate

What is middleware in Express, specifically?

Card #5
06
Intermediate

Explain the next() function and middleware chaining.

Card #6
07
Intermediate

What are the different types of middleware in Express?

Card #7
08
Beginner

What do express.json() and express.urlencoded() do?

Card #8
09
Intermediate

What is express.Router() and why use it?

Card #9
10
Beginner

How do you serve static files in Express (express.static())?

Card #10
11
Intermediate

How does error-handling middleware work in Express (4-argument middleware)?

Card #11
12
Beginner

How do you handle 404 / unmatched routes in Express?

Card #12
13
Beginner

What are the common properties on the req object?

Card #13
14
Beginner

What are the common methods on the res object?

Card #14
15
Intermediate

What is CORS and how do you handle it in Express?

Card #15
16
Intermediate

How do you set up environment-based configuration in an Express app?

Card #16
17
Intermediate

How does Express typically connect to a database? (conceptual, MongoDB/Mongoose context)

Card #17
18
Intermediate

What is authentication middleware and how does it protect routes? (conceptual)

Card #18
19
Intermediate

How do file uploads work in Express? (conceptual — multer)

Card #19
20
Intermediate

What are helmet and express-rate-limit used for? (security basics)

Card #20
21
Intermediate

What is RESTful API structure in Express — controllers, routes, models separation?

Card #21
22
Advanced

How do you handle async errors in Express without repeating try/catch everywhere?

Card #22
23
Beginner

What's good practice for organizing an Express app's folder structure?

Card #23
24
Beginner

Difference between app.use() and method-specific handlers like app.get()?

Card #24
25
Beginner

What are the different ways to send responses in Express (JSON, HTML, files, status-only)?

Card #25