What 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.4 min read·dskwebdev.hashnode.devApr 23
Sessions 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 in4 min read·dskwebdev.hashnode.devApr 17
REST 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 men5 min read·dskwebdev.hashnode.devApr 16
Destructuring 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 no3 min read·dskwebdev.hashnode.devMar 26
Map 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, and3 min read·dskwebdev.hashnode.devMar 26