---
title: "Discussion on \"What is Middleware in Express and How It Works\" | Hashnode"
description: "Discussion on \"What is Middleware in Express and How It Works\". Introduction\nIf you have ever worked with Express.js, you have probably heard the term middleware. Middleware is simply a function that executes between receiving a request and sending a response.\nThe"
url: "https://hashnode.com/posts/what-is-middleware-in-express-and-how-it-works/69fc3e303d9a9c101979e51b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What is Middleware in Express and How It Works](https://js-blogs.hashnode.dev/what-is-middleware-in-express-and-how-it-works?utm_source=hashnode&utm_medium=feed)

Introduction If you have ever worked with Express.js, you have probably heard the term middleware. Middleware is simply a function that executes between receiving a request and sending a response. The

May 7 · 6 min read · js-blogs.hashnode.dev  
Read the article

-   [#chaicode](https://hashnode.com/tag/chaicode)
-   [#chaiaurcode](https://hashnode.com/tag/chaiaurcode)
-   [#chaicohort](https://hashnode.com/tag/chaicohort)
-   [#express](https://hashnode.com/tag/express)
-   [#middleware](https://hashnode.com/tag/middleware)

## Written by

[Prakash Jangid](https://hashnode.com/@prakash-devx)

@prakash-devx

  
[View profile](https://hashnode.com/@prakash-devx)

Developer mode on

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
