1. Explain the concept of middleware in Node.js.
Middleware functions in Node.js (especially in Express) process incoming requests before they reach route handlers. They can modify requests, add headers, handle authentication, or terminate the request-response cycle.
app.use((req,res,next)=>{
console.log('Request Time:', Date.now());
next();
});