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 #1View Answer
02
Beginner
How do you set up a basic Express app?
Card #2View Answer
03
Beginner
Explain basic routing in Express — app.get, app.post, app.put, app.delete.
Card #3View Answer
04
Beginner
Difference between route parameters and query parameters?
Card #4View Answer
05
Intermediate
What is middleware in Express, specifically?
Card #5View Answer
06
Intermediate
Explain the next() function and middleware chaining.
Card #6View Answer
07
Intermediate
What are the different types of middleware in Express?
Card #7View Answer
08
Beginner
What do express.json() and express.urlencoded() do?
Card #8View Answer
09
Intermediate
What is express.Router() and why use it?
Card #9View Answer
10
Beginner
How do you serve static files in Express (express.static())?
Card #10View Answer
11
Intermediate
How does error-handling middleware work in Express (4-argument middleware)?
Card #11View Answer
12
Beginner
How do you handle 404 / unmatched routes in Express?
Card #12View Answer
13
Beginner
What are the common properties on the req object?
Card #13View Answer
14
Beginner
What are the common methods on the res object?
Card #14View Answer
15
Intermediate
What is CORS and how do you handle it in Express?
Card #15View Answer
16
Intermediate
How do you set up environment-based configuration in an Express app?
Card #16View Answer
17
Intermediate
How does Express typically connect to a database? (conceptual, MongoDB/Mongoose context)
Card #17View Answer
18
Intermediate
What is authentication middleware and how does it protect routes? (conceptual)
Card #18View Answer
19
Intermediate
How do file uploads work in Express? (conceptual — multer)
Card #19View Answer
20
Intermediate
What are helmet and express-rate-limit used for? (security basics)
Card #20View Answer
21
Intermediate
What is RESTful API structure in Express — controllers, routes, models separation?
Card #21View Answer
22
Advanced
How do you handle async errors in Express without repeating try/catch everywhere?
Card #22View Answer
23
Beginner
What's good practice for organizing an Express app's folder structure?
Card #23View Answer
24
Beginner
Difference between app.use() and method-specific handlers like app.get()?
Card #24View Answer
25
Beginner
What are the different ways to send responses in Express (JSON, HTML, files, status-only)?
Card #25View Answer