I tried to build a simple ejs app, but got an error in return
const express = require('express')
const app = express();
app.get('/demo',(req,res)=>{
app.render('index.ejs');
});
app.listen(4000,()=>{
console.log("Server started at port 4000");
})
FIle system
New contributor
Gaurav Jangra is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.