tvishasharma.hashnode.devDebouncing and Throttling in JavaScriptWhen we build web applications, some events like scrolling, resizing, or typing can fire hundreds of times per second. If we handle every single event directly, it can slow down our app. That’s where Debouncing and Throttling come in — two techniques...Aug 16, 2025·2 min read
tvishasharma.hashnode.devPolyfills - Bridging Gaps in JavaScriptThis article might be a bit long, but we'll aim to thoroughly understand and explore polyfills. What is Polyfill? If you web search the definition of “Polyfill“, you’ll find A polyfill is a piece of code (usually JavaScript on the Web) used to provi...Feb 22, 2025·5 min read
tvishasharma.hashnode.devFunction Declaration vs. Function Expression - Who Wins? ⚔️JavaScript is like a chaotic kitchen 🍳, and functions are your recipes. But wait! There are two ways to write a recipe: Function Declarations and Function Expressions. Let’s see who’s the real MasterChef! 🏆 The Name Game Function Declaration 🏷️ Th...Feb 21, 2025·2 min read
tvishasharma.hashnode.devSerialization & Deserialization - Turning Objects into Strings and Back!Overview Have you ever tried sending an object over a network, storing it in a database, or even just making a deep copy of an object—only to realize JavaScript doesn’t do it the way you expected? That’s where serialization and deserialization step i...Feb 20, 2025·4 min read
tvishasharma.hashnode.devUnderstanding Objects in JavaScript - The Office Laptop Saga 💻Imagine you’ve just joined a fancy IT job (ik you have secretly practised DSA😏). You get a brand-new office laptop 🖥️, but little do you know, it has a personality of its own. It tracks your browsing history (oops 😬), reminds you of deadlines, and...Feb 19, 2025·3 min read