This is my code:-
const express = require("express");
const app = express();
app.get("/", function (req,res) {
res.send("<h1>Hello World</h1>");
res.send(__dirname + '\\index.html');
});
app.listen(3000, function () {
console.log("Server is running on port 3000");
});
I was expecting to run code properly and the file properly send to given location
Hello World
");` – djolf Apr 04 '23 at 08:25