DSDiwya sudarshan kaushikindskwebdev.hashnode.dev·Apr 23 · 4 min readWhat is Middleware in Express and How It Works1. What is Middleware? At its core, middleware is a function that has access to the Request object (req), the Response object (res), and the next function in the application’s request-response cycle. 00
DSDiwya sudarshan kaushikindskwebdev.hashnode.dev·Apr 17 · 4 min readSessions vs JWT vs Cookies: Understanding Authentication Approaches1. The Building Blocks: Cookies, Sessions, and JWTs Before comparing strategies, let's define the tools we use to identify users. What are Cookies? A Cookie is a small piece of data stored directly in00
DSDiwya sudarshan kaushikindskwebdev.hashnode.dev·Apr 16 · 5 min readREST API Design Made Simple with Express.jsIn the world of web development, a REST API acts as the bridge between the client (the frontend) and the server (the backend). Think of it as a waiter in a restaurant: you (the client) look at the men00
DSDiwya sudarshan kaushikindskwebdev.hashnode.dev·Mar 26 · 3 min readDestructuring in JavaScript1. What Destructuring Means At its core, destructuring is a convenient way to extract data from arrays or objects into distinct variables. Instead of accessing items one by one using indices or dot no00
DSDiwya sudarshan kaushikindskwebdev.hashnode.dev·Mar 26 · 3 min readMap and Set in JavaScript1. What is a Map? A Map is a collection of key-value pairs, just like objects — but more powerful. However, the primary difference is that Map allows keys of any type—including functions, objects, and00