title: Why my code was unable to terminate after first request when I removed next() from this code?
body: <pre><code>const express =require ('express')
  let app= express()
  
  function logger (req,res,next) {
     console.log(new Date(), req.method, req.url)
     next()
    }
     app.use(logger)
     app.get('/',(req,res) =&gt; {
     res.json({name:'Some name'});
   }
   )
  
  
  app.listen(3000,()=&gt;console.log('Server Started'))
  </code></pre>
  
  <p>Here the request is not getting terminated after removing next() from the function logger(), when I tested it using postman. What is the reason behind the same? What actually this next() is doing here in this context of code?</p>