Tell us what’s happening:
My Test Cases is not getting passed…
In forum nobody know Now why this error is occurred even I tried all solutions that given in forum .
Here is My Code
var express = require('express');
var app = express();
// --> 7) Mount the Logger middleware here
app.use((req,res,next)=>{
const{ method,path} = req;
const ip='127.0.0.1'
console.log(`${method} ${path} - ${ip}`);
next();
});
Your browser information:
User Agent is: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
.
Challenge: Implement a Root-Level Request Logger Middleware
Link to the challenge: