const express = require("express"); const app = express(); const path = require("path"); app.get("/", (req, res) =>{ res.sendFile(path.join(__dirname + "/index.html")) }); const PORT = 4000; app.listen(PORT, () =>{ console.log(`Server is working on ${PORT}`) });