Tell us what’s happening:
i tried different ways it is showing me error all the time could any one please help me.
Your code so far
app.get("/",function (req,res,next){
console.log("${req.method} ${req.path} - ${req.ip}");
next();
})
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.61 Safari/537.36
.
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge: