Direction: Choose the correct option
Q1.
What is the minimal code to create a simple Express server that responds with 'Hello World' at the root?
Direction: Choose the correct option
Q2.
In the callback of app.get('/', (req, res) => { ... }), what do req and res represent?
Direction: Choose the correct option
Q3.
What happens if you do not call any method like res.send() in a route handler?
Direction: Choose the correct option
Q4.
How can you make your server listen on a dynamic port (e.g., from environment variables)?
Direction: Choose the correct option
Q5.
Which method is used to log a message when the server starts listening?
