blogs.swarupdas.devPrototypal Inheritance in JavaScriptWhen I started learning JavaScript, one sentence kept popping up everywhere: “JavaScript uses prototypal inheritance.” At first, it sounded intimidating. But once I understood how property lookup actually works, everything became much clearer. This...Jan 24·4 min read
blogs.swarupdas.devJavaScript Power Trio: Mastering Call, Apply, and BindIf you have been working with JavaScript for a while, you’ve likely bumped into the this keyword. It’s powerful, but it can be slippery. Sometimes this doesn’t refer to what you think it does. This is where Call, Apply, and Bind come to the rescue. T...Jan 23·3 min read
blogs.swarupdas.devMastering JavaScript's this Keyword: A Real-Life GuideThe definition seems simple: this refers to the current execution context. But in practice, it feels like this has a mind of its own. It changes based on how you call a function, not just where you write it. In this guide, we’ll break down every scen...Jan 22·5 min read
blogs.swarupdas.devDebounce vs Throttle in JavaScriptWhen building modern web applications, performance matters.Events like scroll, resize, keypress, or API calls can fire hundreds of times per second, leading to laggy UI and unnecessary network requests. Two powerful techniques to handle this are Debo...Jan 10·4 min read
blogs.swarupdas.devIntroduction to Gen-AIIntroduction to Generative AI: Understanding the Technology Reshaping Our World Artificial Intelligence has entered a revolutionary phase with the emergence of Generative AI. From writing code to creating art, composing music to generating human-like...Jan 8·7 min read