// Step 1: Install Express
npm install express
// Step 2: Import the Express module
const express = require('express');
// Step 3: Create an Express application
const app = express();
// Step 4: Define a route handler for the root path '/'
app.get('/', (req, res) => {
res.send('Hello, World!');
});
// Step 5: Specify the port to listen on
const port = 3000;
// Step 6: Start the Express server to listen on the specified port
app.listen(port, () => {
console.log(`Server is listening on port ${port}`);
});