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

Timeout has occurred - Basic Node and Express - Implement a Root-Level Request Logger Middleware
0

#1

this is my code:

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

// --> 7)  Mount the Logger middleware here
app.use(function middleware(req, res, next) {
  var result = req.method + ' ' + req.path + ' - ' + req.ip;
  console.log(result);
  next();
});

I don’t know what is wrong and how to change it, it keeps saying Timeout has occured