Question Bank
1085 approved questions from the community
How do you retrieve URL parameters from a GET request in Express.js?
How do you set the HTTP status code in Express.js?
What command is used to install Express.js in a Node.js project?
What is the purpose of the `app.use()` function in Express.js?
What is the default port number commonly used for Express.js development servers?
Which method is used to serve static files in Express.js?
How does Express.js relate to Node.js?
What is Express.js?
Express.js applications can be tested using frameworks like Jest or Mocha.
What HTTP status code should be returned when a resource is successfully created?
Express.js is the only web framework available for Node.js.
Which method is used to specify a view engine in Express.js?
Express.js requires a specific database to function.
The `req.method` property contains the HTTP method (GET, POST, etc.) of the request.
Express.js can only be used to build web applications, not APIs.
Which HTTP status code represents 'Not Found'?
You must manually parse JSON request bodies in Express.js without any middleware.
Express.js is synchronous and cannot handle asynchronous operations.
What method sends a JSON response in Express.js?
Which object in Express.js represents the HTTP request?