Basic Node and Express - Implement a Root-Level Request Logger Middleware

this my code

let express = require('express');
let app = express();

app.use(function middleware(req,res,next) {
var string = req.method + ’ ’ + req.path + ’ - ’ + req.ip;

// is not working please i need your help

Please provide a link to the challenge you are working on. Also, please explain what about the challenge has you confused. “is not working” doesn’t give us much to go off of.

Thank you.

this is the link //

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.