const express = require('express'); const app = express(); const port = 3000; app.get('/', (req, res) => { res.send('Hello World from Node.js on port 3000!'); }); app.listen(port, () => { console.log(`Server is running at http://localhost:${port}`); });